public static enum OnnxMlProto3.Version extends Enum<OnnxMlProto3.Version> implements com.github.os72.protobuf351.ProtocolMessageEnum
To be compatible with both proto2 and proto3, we will use a version number that is not defined by the default value but an explicit enum number.Protobuf enum
onnx.Version
Enum Constant and Description |
---|
_START_VERSION
proto3 requires the first enum value to be zero.
|
IR_VERSION
IR VERSION 0.0.3 published on Nov 3, 2017
- For operator versioning:
- Added new message OperatorSetIdProto
- Added opset_import in ModelProto
- For vendor extensions, added domain in NodeProto
|
IR_VERSION_2017_10_10
The version field is always serialized and we will use it to store the
version that the graph is generated from.
|
IR_VERSION_2017_10_30
IR_VERSION 0.0.2 published on Oct 30, 2017
- Added type discriminator to AttributeProto to support proto3 users
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
_START_VERSION_VALUE
proto3 requires the first enum value to be zero.
|
static int |
IR_VERSION_2017_10_10_VALUE
The version field is always serialized and we will use it to store the
version that the graph is generated from.
|
static int |
IR_VERSION_2017_10_30_VALUE
IR_VERSION 0.0.2 published on Oct 30, 2017
- Added type discriminator to AttributeProto to support proto3 users
|
static int |
IR_VERSION_VALUE
IR VERSION 0.0.3 published on Nov 3, 2017
- For operator versioning:
- Added new message OperatorSetIdProto
- Added opset_import in ModelProto
- For vendor extensions, added domain in NodeProto
|
Modifier and Type | Method and Description |
---|---|
static OnnxMlProto3.Version |
forNumber(int value) |
static com.github.os72.protobuf351.Descriptors.EnumDescriptor |
getDescriptor() |
com.github.os72.protobuf351.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.github.os72.protobuf351.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.github.os72.protobuf351.Internal.EnumLiteMap<OnnxMlProto3.Version> |
internalGetValueMap() |
static OnnxMlProto3.Version |
valueOf(com.github.os72.protobuf351.Descriptors.EnumValueDescriptor desc) |
static OnnxMlProto3.Version |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static OnnxMlProto3.Version |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OnnxMlProto3.Version[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OnnxMlProto3.Version _START_VERSION
proto3 requires the first enum value to be zero. We add this just to appease the compiler.
_START_VERSION = 0;
public static final OnnxMlProto3.Version IR_VERSION_2017_10_10
The version field is always serialized and we will use it to store the version that the graph is generated from. This helps us set up version control. We should use version as xx(major) - xx(minor) - xxxx(bugfix) and we are starting with 0x00000001 (0.0.1), which was the version we published on Oct 10, 2017.
IR_VERSION_2017_10_10 = 1;
public static final OnnxMlProto3.Version IR_VERSION_2017_10_30
IR_VERSION 0.0.2 published on Oct 30, 2017 - Added type discriminator to AttributeProto to support proto3 users
IR_VERSION_2017_10_30 = 2;
public static final OnnxMlProto3.Version IR_VERSION
IR VERSION 0.0.3 published on Nov 3, 2017 - For operator versioning: - Added new message OperatorSetIdProto - Added opset_import in ModelProto - For vendor extensions, added domain in NodeProto
IR_VERSION = 3;
public static final OnnxMlProto3.Version UNRECOGNIZED
public static final int _START_VERSION_VALUE
proto3 requires the first enum value to be zero. We add this just to appease the compiler.
_START_VERSION = 0;
public static final int IR_VERSION_2017_10_10_VALUE
The version field is always serialized and we will use it to store the version that the graph is generated from. This helps us set up version control. We should use version as xx(major) - xx(minor) - xxxx(bugfix) and we are starting with 0x00000001 (0.0.1), which was the version we published on Oct 10, 2017.
IR_VERSION_2017_10_10 = 1;
public static final int IR_VERSION_2017_10_30_VALUE
IR_VERSION 0.0.2 published on Oct 30, 2017 - Added type discriminator to AttributeProto to support proto3 users
IR_VERSION_2017_10_30 = 2;
public static final int IR_VERSION_VALUE
IR VERSION 0.0.3 published on Nov 3, 2017 - For operator versioning: - Added new message OperatorSetIdProto - Added opset_import in ModelProto - For vendor extensions, added domain in NodeProto
IR_VERSION = 3;
public static OnnxMlProto3.Version[] values()
for (OnnxMlProto3.Version c : OnnxMlProto3.Version.values()) System.out.println(c);
public static OnnxMlProto3.Version valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.github.os72.protobuf351.Internal.EnumLite
getNumber
in interface com.github.os72.protobuf351.ProtocolMessageEnum
@Deprecated public static OnnxMlProto3.Version valueOf(int value)
forNumber(int)
instead.public static OnnxMlProto3.Version forNumber(int value)
public static com.github.os72.protobuf351.Internal.EnumLiteMap<OnnxMlProto3.Version> internalGetValueMap()
public final com.github.os72.protobuf351.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.github.os72.protobuf351.ProtocolMessageEnum
public final com.github.os72.protobuf351.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.github.os72.protobuf351.ProtocolMessageEnum
public static final com.github.os72.protobuf351.Descriptors.EnumDescriptor getDescriptor()
public static OnnxMlProto3.Version valueOf(com.github.os72.protobuf351.Descriptors.EnumValueDescriptor desc)
Copyright © 2018. All rights reserved.