Expand description
The computational graph: Graph, Op, Shape, SymTensor.
Modules§
- compiler
- Graph-to-FXGraph lowering.
Structs§
- Custom
Data - Wrapper around
Arc<dyn CustomOp>that implementsDebugforOp. - Graph
- The traced computational graph: a list of
GraphNodes plus optional node names. - Graph
Node - One node in a
Graph: anOpplus its producer indices, dtype, and output shape. - SymTensor
- A symbolic tensor handle. Every layer operation on a
SymTensorrecords itself in the sharedGraphand returns a newSymTensorpointing to the new node. Cloning is cheap — it shares the graph viaRc.
Enums§
- Dtype
Repr - Runtime dtype tag: the graph-level (type-erased) representation of a tensor’s dtype,
mirroring
dtype::Dtype’s implementors. - Op
- A single computational-graph operation. Each variant corresponds to one
nnlayer or primitive op; variant fields are that op’s configuration (mirroring the correspondingnn::*layer struct’s fields).
Traits§
- Custom
Op - Trait implemented by user-defined ops.
Type Aliases§
- Shape
- A dynamic shape vector. Each element is either a known size (
Some(n)) or a dynamic/unknown dimension (None), e.g. a batch axis whose size is determined at runtime.