opto.trace.bundle#

Module Contents#

Classes#

trace_nodes

FunModule

Functions#

bundle

to_data

wrap_node

detach_inputs

update_local

API#

bundle(description=None, traceable_code=False, _process_inputs=True, trainable=False, catch_execution_error=True, allow_external_dependencies=False, overwrite_python_recursion=False)[source]#
class trace_nodes[source]#
class FunModule(fun: Callable, description: str = None, traceable_code: bool = False, _process_inputs: bool = True, trainable=False, catch_execution_error=True, allow_external_dependencies=False, overwrite_python_recursion=False, _ldict=None)[source]#

Bases: opto.trace.modules.Module

Initialization

property trainable#
property fun#
property name#
forward(*args, **kwargs)[source]#
wrap(output: Any, inputs: Union[List[opto.trace.nodes.Node], Dict[str, opto.trace.nodes.Node]], external_dependencies: List[opto.trace.nodes.Node])[source]#
static is_valid_output(output)[source]#
detach()[source]#
generate_comment(code: str, comment: str, comment_line_number: int, base_line_number: int = 0)[source]#
get_source(obj: Any, bug_mode=False)[source]#
to_data(obj)[source]#
wrap_node(obj)[source]#
detach_inputs(obj)[source]#
update_local(frame, name, value)[source]#