onnx_alias.h#

Defines backwards-compatible type aliases for ONNX protobuf enumerations.

The original protobuf-generated C++ code exposed flat names such as TensorProto_DataType. The onnx-light implementation uses scoped enumerations (e.g. TensorProto::DataType). The aliases defined here restore the flat names so that code written against the original protobuf headers continues to compile without modification.

Defines

TensorShapeProto_Dimension#
TensorProto_DataType_Name#
TensorProto_DataType_UNDEFINED#
TensorProto_DataType_FLOAT#
TensorProto_DataType_UINT8#
TensorProto_DataType_INT8#
TensorProto_DataType_UINT16#
TensorProto_DataType_INT16#
TensorProto_DataType_INT32#
TensorProto_DataType_INT64#
TensorProto_DataType_STRING#
TensorProto_DataType_BOOL#
TensorProto_DataType_FLOAT16#
TensorProto_DataType_DOUBLE#
TensorProto_DataType_UINT32#
TensorProto_DataType_UINT64#
TensorProto_DataType_COMPLEX64#
TensorProto_DataType_COMPLEX128#
TensorProto_DataType_BFLOAT16#
TensorProto_DataType_FLOAT8E4M3FN#
TensorProto_DataType_FLOAT8E4M3FNUZ#
TensorProto_DataType_FLOAT8E5M2#
TensorProto_DataType_FLOAT8E5M2FNUZ#
TensorProto_DataType_UINT4#
TensorProto_DataType_INT4#
TensorProto_DataType_FLOAT4E2M1#
TensorProto_DataType_FLOAT8E8M0#
TensorProto_DataType_UINT2#
TensorProto_DataType_INT2#
AttributeProto_AttributeType_INT#
AttributeProto_AttributeType_INTS#
AttributeProto_AttributeType_FLOAT#
AttributeProto_AttributeType_FLOATS#
AttributeProto_AttributeType_GRAPH#
AttributeProto_AttributeType_GRAPHS#
AttributeProto_AttributeType_STRING#
AttributeProto_AttributeType_STRINGS#
AttributeProto_AttributeType_TENSOR#
AttributeProto_AttributeType_TENSORS#
AttributeProto_AttributeType_TYPE_PROTO#
AttributeProto_AttributeType_TYPE_PROTOS#
namespace ONNX_LIGHT_NAMESPACE

Typedefs

using TensorProto_DataType = TensorProto::DataType#

Aliases TensorProto::DataType under the flat protobuf-style name.

Use TensorProto_DataType wherever the original protobuf-generated API expects the flat enumeration name. Fully-qualified values such as TensorProto_DataType::TensorProto_DataType_FLOAT are available through the TensorProto_DataType_* macros defined in onnx.h.

using TensorShapeProto_Dimension = TensorShapeProto::Dimension#
using TypeProto_Map = TypeProto::Map#
using TypeProto_Optional = TypeProto::Optional#
using TypeProto_Sequence = TypeProto::Sequence#
using TypeProto_SparseTensor = TypeProto::SparseTensor#
using TypeProto_Tensor = TypeProto::Tensor#