Graph wire format #
NN.IR.OpTag identifies semantic operators. This module assigns each identity its fixed spelling in
torchlean.ir.v1: for example, .mulElem is written as "mul_elem". Keeping this table separate
from diagnostic names lets us improve an error message while keeping existing graphs readable.
Exporters and importers use the same table.
The tag round trip is proved for every constructor. Static attributes are parsed separately;
parseOpKind? constructs only operations that need none. Tuple projections and supported container
nodes belong to the external value graph, not the tensor graph's semantic operator vocabulary.
Format marker written to the root format field.
Instances For
Projection of one component out of a tuple-valued FX node.
Instances For
Container-valued nn.MultiheadAttention call kept in the value graph.
Instances For
Legacy marker for a tuple producer without a lowering rule; the importer reports its limits.
Instances For
Fixed constructor spelling in the torchlean.ir.v1 artifact.
Instances For
Parse a v1 constructor spelling into its semantic identity.
Instances For
Parse an attribute-free operation; attributed operators need their separate fields.
Instances For
JSON or Python "kind": "<wire>" field for an operator identity.
Instances For
JSON or Python object holding only the kind field.
Instances For
The wire string as a quoted JSON or Python literal.
Instances For
Python set literal of quoted wire strings.
Instances For
Every v1 tag parses back to its identity: the codec is complete and collision free.
Serializing and parsing an operation preserves its identity, regardless of its attributes.
The attribute-free v1 round trip reconstructs the original operation.