opto.trace.nodes
#
Module Contents#
Classes#
Functions#
Data#
API#
- NAME_SCOPES = []#
- GRAPH = 'Graph(...)'#
- USED_NODES = 'list(...)'#
- T = 'TypeVar(...)'#
- class AbstractNode(value, *, name=None, trainable=False)[source]#
Bases:
typing.Generic
[opto.trace.nodes.T
]Initialization
- property data#
- property parents#
- property children#
- property name#
- property py_name#
- property id#
- property level#
- property is_root#
- property is_leaf#
- IDENTITY_OPERATORS = ('identity', 'clone')#
- class NodeVizStyleGuideColorful(style='default', print_limit=100)[source]#
Bases:
opto.trace.nodes.NodeVizStyleGuide
Initialization
- class Node(value: Any, *, name: str = None, trainable: bool = False, description: str = '[Node] This is a node in a computational graph.', constraint: Union[None, str] = None, info: Union[None, Dict] = None)[source]#
Bases:
opto.trace.nodes.AbstractNode
[opto.trace.nodes.T
]Initialization
- property feedback#
- property description#
- property info#
- property type#
- property parameter_dependencies#
- property expandable_dependencies#
- class ParameterNode(value, *, name=None, trainable=True, description='[ParameterNode] This is a ParameterNode in a computational graph.', constraint=None, info=None)[source]#
- class MessageNode(value, *, inputs: Union[List[opto.trace.nodes.Node], Dict[str, opto.trace.nodes.Node]], description: str, constraint=None, name=None, info=None)[source]#
Bases:
opto.trace.nodes.Node
[opto.trace.nodes.T
]Initialization
- property inputs#
- class ExceptionNode(value: Exception, *, inputs: Union[List[opto.trace.nodes.Node], Dict[str, opto.trace.nodes.Node]], description: str = '[ExceptionNode] This is node containing the error of execution.', constraint=None, name=None, info=None)[source]#
Bases:
opto.trace.nodes.MessageNode
[opto.trace.nodes.T
]Initialization