Skip to main content

Module dtype

Module dtype 

Source
Expand description

OnnxDataType — the ONNX TensorProto.DataType alphabet, a mapping from the enum IDs 1..=23 to [prism::tensor::dtype] shapes plus the ONNX-specific STRING (ID 8), which carries no numeric dtype.

Authoritative source: the TensorProto.DataType enum in https://github.com/onnx/onnx/blob/main/onnx/onnx.proto.

Enums§

OnnxDataType
An ONNX tensor element type. All variants except Self::String map 1:1 to a [prism::tensor::dtype] shape.