public static enum Onnx.Version extends Enum<Onnx.Version> implements org.nd4j.shade.protobuf.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 Onnx.Version |
forNumber(int value) |
static org.nd4j.shade.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
org.nd4j.shade.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static org.nd4j.shade.protobuf.Internal.EnumLiteMap<Onnx.Version> |
internalGetValueMap() |
static Onnx.Version |
valueOf(org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor desc) |
static Onnx.Version |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Onnx.Version |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Onnx.Version[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Onnx.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 Onnx.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 Onnx.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 Onnx.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 Onnx.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 Onnx.Version[] values()
for (Onnx.Version c : Onnx.Version.values()) System.out.println(c);
public static Onnx.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 org.nd4j.shade.protobuf.Internal.EnumLite
getNumber
in interface org.nd4j.shade.protobuf.ProtocolMessageEnum
@Deprecated public static Onnx.Version valueOf(int value)
forNumber(int)
instead.public static Onnx.Version forNumber(int value)
public static org.nd4j.shade.protobuf.Internal.EnumLiteMap<Onnx.Version> internalGetValueMap()
public final org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface org.nd4j.shade.protobuf.ProtocolMessageEnum
public final org.nd4j.shade.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface org.nd4j.shade.protobuf.ProtocolMessageEnum
public static final org.nd4j.shade.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Onnx.Version valueOf(org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2019. All rights reserved.