Expand description
Recording context wrapping the in-progress FunctionProto. The
proto is the IR — semantic BB attributes ride on proto fields,
not a parallel Rust shadow store. See docs/IR_AND_DSL.md §2.
Rust-side wrapper carries what the proto can’t represent:
instance_for_pointer (pointer-identity dedup for generic
placeholders) and site_counter (output-name minting cache).
Module::build() constructs Graph automatically; Graph::new()
is for acceptance tests.
Structs§
- Graph
- Recording context every DSL method writes into.
Enums§
- Recording
Mode - Open top-level vs. sealed nested-function recording.
Functions§
- attr_
float - Construct an
AttributeProtoof typeFLOAT. Used forepsilon,alpha,momentum, etc. - attr_
graph - Construct an
AttributeProtoof typeGRAPH. ONNX carriesIf/Loopbody sub-graphs inAttributeProto.g. - attr_
int - Construct an
AttributeProtoof typeINTforNodeProto.attribute. Used by DSL methods that pass scalari64config (axis,group,to, etc.). - attr_
ints - Construct an
AttributeProtoof typeINTS. Used for shape / axes / strides / kernel_shape / pads / dilations / perm vectors. - attr_
string - Construct an
AttributeProtoof typeSTRING. The proto stores strings ass: Vec<u8>; this helper hides the bytes encoding. Used by ops carrying structured-string metadata (e.g. comma-separated TypeNode denotation lists oncompositeBundle / Unbundle). - attr_
tensor - Construct an
AttributeProtoof typeTENSOR. Used byConstantfor embedded literal payloads. - kv
- Construct a
StringStringEntryProtoformetadata_propsorattribute_proto.metadata_props. Used by every DSL method body.