pub struct Net { /* private fields */ }
Expand description

The computation network. Connection has duplication.

Implementations

Return one output variable id if there is one.

Insert an empty var into the network.

Insert operator into the network.

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.

Check the func is concrete or not.

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.