Package onnx

Enum Class Onnx.Version

All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<Onnx.Version>, Constable
Enclosing class:
Onnx

public static enum Onnx.Version extends Enum<Onnx.Version> implements com.google.protobuf.ProtocolMessageEnum
 Versioning
 ONNX versioning is specified in docs/IR.md and elaborated on in docs/Versioning.md
 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
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    proto3 requires the first enum value to be zero.
    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
    The version field is always serialized and we will use it to store the version that the graph is generated from.
    IR_VERSION 0.0.2 published on Oct 30, 2017 - Added type discriminator to AttributeProto to support proto3 users
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    proto3 requires the first enum value to be zero.
    static final int
    The version field is always serialized and we will use it to store the version that the graph is generated from.
    static final int
    IR_VERSION 0.0.2 published on Oct 30, 2017 - Added type discriminator to AttributeProto to support proto3 users
    static final int
    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
  • Method Summary

    Modifier and Type
    Method
    Description
    forNumber(int value)
     
    static final com.google.protobuf.Descriptors.EnumDescriptor
     
    final com.google.protobuf.Descriptors.EnumDescriptor
     
    final int
     
    final com.google.protobuf.Descriptors.EnumValueDescriptor
     
    static com.google.protobuf.Internal.EnumLiteMap<Onnx.Version>
     
    valueOf(int value)
    Deprecated.
    valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
    Returns the enum constant of this class with the specified name.
    Returns the enum constant of this class with the specified name.
    static Onnx.Version[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • _START_VERSION

      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;
    • IR_VERSION_2017_10_10

      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;
    • IR_VERSION_2017_10_30

      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;
    • IR_VERSION

      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;
  • Field Details

    • _START_VERSION_VALUE

      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;
      See Also:
    • IR_VERSION_2017_10_10_VALUE

      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;
      See Also:
    • IR_VERSION_2017_10_30_VALUE

      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;
      See Also:
    • IR_VERSION_VALUE

      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;
      See Also:
  • Method Details

    • values

      public static Onnx.Version[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Onnx.Version valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static Onnx.Version valueOf(int value)
      Deprecated.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static Onnx.Version forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<Onnx.Version> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static Onnx.Version valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      desc - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null