Struct primitiv::Graph [] [src]

pub struct Graph { /* fields omitted */ }

Computation graph.

Methods

impl Graph
[src]

[src]

Creates a new Graph object.

[src]

Specifies a new default graph.

[src]

Clear all operators in the graph.

Remark: After calling this method, all Node objects supplied by the graph itself is invalidated.

[src]

Calculates the value of given node.

[src]

Calculates the backpropagation.

[src]

Retrieves the shape of the node.

[src]

Retrieves the device of the node.

[src]

Dump internal graph structure.

Available options:

  • “dot” … Graphviz’s dot format.

[src]

Returns the number of operators in the computation graph.

Trait Implementations

impl Debug for Graph
[src]

[src]

Formats the value using the given formatter. Read more

impl Wrap<primitivGraph_t> for Graph
[src]

impl Drop for Graph
[src]

[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl !Send for Graph

impl !Sync for Graph