Skip to main content

Module constant

Module constant 

Source
Expand description

Constant syscall component - emits a constant value at bootstrap. Reads the value AttributeProto’s TensorProto at invoke time and emits the encoded TensorProto bytes as a BytesValue. Downstream tensor-shaped consumers decode via Tensor::from_proto using their declared scalar type.

Structs§

ConstantOp
Engine dispatch-table marker.

Constants§

DOMAIN
Domain for every framework-emitted syscall (compiler gates, pass_through, gate_dispatch).
OP_TYPE
Emit a literal from a TensorProto / BytesProto attribute.

Functions§

invoke
Invoke fn - emits the value attribute’s TensorProto bytes as a BytesValue.