onnx-data.pb.h#

This header provides the compatibility Version enum expected from the protobuf-generated ONNX C++ API.

Compatibility layer for the protobuf-generated onnx-data.pb.h header from ONNX.

The reference ONNX C++ distribution generates this header from onnx-data.proto and uses it as the canonical definition point for the Version enum. Some ONNX headers vendored into onnx-light still include onnx/onnx-data.pb.h unchanged.

onnx-light does not depend on protobuf code generation, so this header provides a minimal API-compatible replacement:

  • it includes onnx/common/onnx_pb.h for shared ONNX C++ symbols;

  • it defines the ONNX IR Version enum expected by downstream code.

namespace ONNX_LIGHT_NAMESPACE

Enums

enum Version#

ONNX IR version constants mirrored from the ONNX protobuf schema.

IR_VERSION is the latest IR version supported by this build of onnx-light.

Values:

enumerator START_VERSION#
enumerator IR_VERSION_2017_10_10#
enumerator IR_VERSION_2017_10_30#
enumerator IR_VERSION_2017_11_3#
enumerator IR_VERSION_2019_1_22#
enumerator IR_VERSION_2019_3_18#
enumerator IR_VERSION_2019_9_19#
enumerator IR_VERSION_2020_5_8#
enumerator IR_VERSION_2021_7_30#
enumerator IR_VERSION_2023_5_5#
enumerator IR_VERSION_2024_3_25#
enumerator IR_VERSION_2025_05_12#
enumerator IR_VERSION_2025_08_26#
enumerator IR_VERSION#