opto.trace#

Subpackages#

Package Contents#

Classes#

stop_tracing

Node

Module

NodeContainer

Functions#

node

model

apply_op

Data#

GRAPH

API#

node(data, name=None, trainable=False, description=None, constraint=None)[source]#
class stop_tracing[source]#
GRAPH = 'Graph(...)'#
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

zero_feedback()[source]#
property feedback#
property description#
property info#
property type#
property parameter_dependencies#
property expandable_dependencies#
backward(feedback: Any = '', propagator=None, retain_graph=False, visualize=False, simple_visualization=True, reverse_plot=False, print_limit=100)[source]#
clone()[source]#
detach()[source]#
getattr(key)[source]#
call(fun: str, *args, **kwargs)[source]#
len()[source]#
eq(other)[source]#
neq(other)[source]#
format(*args, **kwargs)[source]#
capitalize()[source]#
lower()[source]#
upper()[source]#
swapcase()[source]#
title()[source]#
split(sep=None, maxsplit=-1)[source]#
strip(chars=None)[source]#
replace(old, new, count=-1)[source]#
join(seq)[source]#
items()[source]#
values()[source]#
keys()[source]#
pop(__index=-1)[source]#
append(*args, **kwargs)[source]#
class Module[source]#

Bases: opto.trace.containers.ParameterContainer

abstract forward(*args, **kwargs)[source]#
save(file_name)[source]#
load(file_name)[source]#
class NodeContainer[source]#
model(cls)[source]#
apply_op(op, output, *args, **kwargs)[source]#