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.hfor shared ONNX C++ symbols;it defines the ONNX IR
Versionenum expected by downstream code.
Defines
-
ONNX_LIGHT_VERSION_ENUM_DEFINED#
ONNX IR version constants mirrored from the ONNX protobuf schema.
IR_VERSIONis the latest IR version supported by this build of onnx-light.
-
namespace onnx_light
Alias that makes onnx-light headers compatible with code that references
ONNX_LIGHT_NAMESPACE(the macro used in the standard onnx package).Set to
ONNX_LIGHT_NAMESPACEso both names resolve to the same namespace.Symbol-visibility attribute for the public onnx-light C++ API.
Defined as empty because onnx-light does not require explicit
__declspec(dllexport)or__attribute__((visibility("default")))annotations — visibility is controlled at the shared-library level. The macro is provided so that vendored ONNX headers that decorate their declarations withONNX_APIcompile without modification.Namespace alias so that ONNX C++ code (and consumers such as onnxruntime) that refers to the literal
onnxnamespace — rather than theONNX_NAMESPACEmacro — resolves to the onnx-light namespace. The standard onnx package lives innamespace onnx; onnx-light usesonnx_light(via ONNX_LIGHT_NAMESPACE), so this alias keeps onnx-light a true drop-in. It is only introduced when the onnx-light namespace differs fromonnx.Enums
-
enum Version#
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#
-
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
-
enumerator START_VERSION#
-
enum Version#