Expand description
Expression serialization for TLExpr and EinsumGraph.
Provides custom S-expression text format and compact binary format for serializing/deserializing logical expressions and computation graphs. This enables saving/loading compiled expressions for caching, transfer, and debugging.
Structs§
- Serialization
Stats - Statistics about the serialized form of a
TLExpr.
Enums§
- Expr
Format - Serialization format selector.
- Expr
Serialize Error - Error type for serialization operations.
Functions§
- batch_
from_ binary - Deserialize multiple expressions from a batch binary blob.
- batch_
to_ binary - Serialize multiple expressions efficiently into a single binary blob.
- binary_
equal - Compare two serialized binary forms for equality without deserializing.
- expr_
fingerprint - Compute a 64-bit FNV-1a hash/fingerprint of a
TLExprfor caching. - from_
binary - Deserialize a
TLExprfrom binary bytes. - from_
sexpr - Parse a
TLExprfrom an S-expression string. - graph_
from_ binary - Deserialize an
EinsumGraphfrom binary bytes. - graph_
to_ binary - Serialize an
EinsumGraphto binary bytes. - to_
binary - Serialize a
TLExprto compact binary bytes. - to_
sexpr - Serialize a
TLExprto an S-expression string.