Package ai.onnx.proto

Enum Class OnnxMl.TensorProto.DataType

java.lang.Object
java.lang.Enum<OnnxMl.TensorProto.DataType>
ai.onnx.proto.OnnxMl.TensorProto.DataType
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<OnnxMl.TensorProto.DataType>, Constable
Enclosing class:
OnnxMl.TensorProto

public static enum OnnxMl.TensorProto.DataType extends Enum<OnnxMl.TensorProto.DataType> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum onnx.TensorProto.DataType
  • Enum Constant Details

  • Field Details

    • UNDEFINED_VALUE

      public static final int UNDEFINED_VALUE
      UNDEFINED = 0;
      See Also:
    • FLOAT_VALUE

      public static final int FLOAT_VALUE
       Basic types.
       
      FLOAT = 1;
      See Also:
    • UINT8_VALUE

      public static final int UINT8_VALUE
       uint8_t
       
      UINT8 = 2;
      See Also:
    • INT8_VALUE

      public static final int INT8_VALUE
       int8_t
       
      INT8 = 3;
      See Also:
    • UINT16_VALUE

      public static final int UINT16_VALUE
       uint16_t
       
      UINT16 = 4;
      See Also:
    • INT16_VALUE

      public static final int INT16_VALUE
       int16_t
       
      INT16 = 5;
      See Also:
    • INT32_VALUE

      public static final int INT32_VALUE
       int32_t
       
      INT32 = 6;
      See Also:
    • INT64_VALUE

      public static final int INT64_VALUE
       int64_t
       
      INT64 = 7;
      See Also:
    • STRING_VALUE

      public static final int STRING_VALUE
       string
       
      STRING = 8;
      See Also:
    • BOOL_VALUE

      public static final int BOOL_VALUE
       bool
       
      BOOL = 9;
      See Also:
    • FLOAT16_VALUE

      public static final int FLOAT16_VALUE
       IEEE754 half-precision floating-point format (16 bits wide).
       This format has 1 sign bit, 5 exponent bits, and 10 mantissa bits.
       
      FLOAT16 = 10;
      See Also:
    • DOUBLE_VALUE

      public static final int DOUBLE_VALUE
      DOUBLE = 11;
      See Also:
    • UINT32_VALUE

      public static final int UINT32_VALUE
      UINT32 = 12;
      See Also:
    • UINT64_VALUE

      public static final int UINT64_VALUE
      UINT64 = 13;
      See Also:
    • COMPLEX64_VALUE

      public static final int COMPLEX64_VALUE
       complex with float32 real and imaginary components
       
      COMPLEX64 = 14;
      See Also:
    • COMPLEX128_VALUE

      public static final int COMPLEX128_VALUE
       complex with float64 real and imaginary components
       
      COMPLEX128 = 15;
      See Also:
    • BFLOAT16_VALUE

      public static final int BFLOAT16_VALUE
       Non-IEEE floating-point format based on IEEE754 single-precision
       floating-point number truncated to 16 bits.
       This format has 1 sign bit, 8 exponent bits, and 7 mantissa bits.
       
      BFLOAT16 = 16;
      See Also:
  • Method Details

    • values

      public static OnnxMl.TensorProto.DataType[] 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 OnnxMl.TensorProto.DataType 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 OnnxMl.TensorProto.DataType 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 OnnxMl.TensorProto.DataType 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<OnnxMl.TensorProto.DataType> 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 OnnxMl.TensorProto.DataType 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