Struct auto_diff::compute_graph::Net
source · [−]pub struct Net { /* private fields */ }
Expand description
The computation network. Connection has duplication.
Implementations
Return one output variable id if there is one.
For Module::func, insert a new composed func.
Remove a concrete op or composed func from the graph.
Disconnect the variable and the function the variable is the input. Delete the variable if it becomes the dangling variable.
Return a vec of sub ops for the given op. Empty should be returned if the input is a concrete op.
Build input-operator-output relation, with given components.
set the set_mark, set_mark is used to label var with input value with it.
Merge two computation graph Forward evaluate the computaiton graph.
Iterate over all ops, no order guarantee