Enum Class 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-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNon-IEEE floating-point format based on IEEE754 single-precision floating-point number truncated to 16 bits.boolcomplex with float64 real and imaginary componentscomplex with float32 real and imaginary componentsDOUBLE = 11;Basic types.IEEE754 half-precision floating-point format (16 bits wide).int16_tint32_tint64_tint8_tstringuint16_tUINT32 = 12;UINT64 = 13;uint8_tUNDEFINED = 0; -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intNon-IEEE floating-point format based on IEEE754 single-precision floating-point number truncated to 16 bits.static final intboolstatic final intcomplex with float64 real and imaginary componentsstatic final intcomplex with float32 real and imaginary componentsstatic final intDOUBLE = 11;static final intBasic types.static final intIEEE754 half-precision floating-point format (16 bits wide).static final intint16_tstatic final intint32_tstatic final intint64_tstatic final intint8_tstatic final intstringstatic final intuint16_tstatic final intUINT32 = 12;static final intUINT64 = 13;static final intuint8_tstatic final intUNDEFINED = 0; -
Method Summary
Modifier and TypeMethodDescriptionstatic OnnxMl.TensorProto.DataTypeforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<OnnxMl.TensorProto.DataType> static OnnxMl.TensorProto.DataTypevalueOf(int value) Deprecated.static OnnxMl.TensorProto.DataTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static OnnxMl.TensorProto.DataTypeReturns the enum constant of this class with the specified name.static OnnxMl.TensorProto.DataType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
UNDEFINED = 0; -
FLOAT
Basic types.
FLOAT = 1; -
UINT8
uint8_t
UINT8 = 2; -
INT8
int8_t
INT8 = 3; -
UINT16
uint16_t
UINT16 = 4; -
INT16
int16_t
INT16 = 5; -
INT32
int32_t
INT32 = 6; -
INT64
int64_t
INT64 = 7; -
STRING
string
STRING = 8; -
BOOL
bool
BOOL = 9; -
FLOAT16
IEEE754 half-precision floating-point format (16 bits wide). This format has 1 sign bit, 5 exponent bits, and 10 mantissa bits.
FLOAT16 = 10; -
DOUBLE
DOUBLE = 11; -
UINT32
UINT32 = 12; -
UINT64
UINT64 = 13; -
COMPLEX64
complex with float32 real and imaginary components
COMPLEX64 = 14; -
COMPLEX128
complex with float64 real and imaginary components
COMPLEX128 = 15; -
BFLOAT16
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;
-
-
Field Details
-
UNDEFINED_VALUE
public static final int UNDEFINED_VALUEUNDEFINED = 0;- See Also:
-
FLOAT_VALUE
public static final int FLOAT_VALUEBasic types.
FLOAT = 1;- See Also:
-
UINT8_VALUE
public static final int UINT8_VALUEuint8_t
UINT8 = 2;- See Also:
-
INT8_VALUE
public static final int INT8_VALUEint8_t
INT8 = 3;- See Also:
-
UINT16_VALUE
public static final int UINT16_VALUEuint16_t
UINT16 = 4;- See Also:
-
INT16_VALUE
public static final int INT16_VALUEint16_t
INT16 = 5;- See Also:
-
INT32_VALUE
public static final int INT32_VALUEint32_t
INT32 = 6;- See Also:
-
INT64_VALUE
public static final int INT64_VALUEint64_t
INT64 = 7;- See Also:
-
STRING_VALUE
public static final int STRING_VALUEstring
STRING = 8;- See Also:
-
BOOL_VALUE
public static final int BOOL_VALUEbool
BOOL = 9;- See Also:
-
FLOAT16_VALUE
public static final int FLOAT16_VALUEIEEE754 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_VALUEDOUBLE = 11;- See Also:
-
UINT32_VALUE
public static final int UINT32_VALUEUINT32 = 12;- See Also:
-
UINT64_VALUE
public static final int UINT64_VALUEUINT64 = 13;- See Also:
-
COMPLEX64_VALUE
public static final int COMPLEX64_VALUEcomplex with float32 real and imaginary components
COMPLEX64 = 14;- See Also:
-
COMPLEX128_VALUE
public static final int COMPLEX128_VALUEcomplex with float64 real and imaginary components
COMPLEX128 = 15;- See Also:
-
BFLOAT16_VALUE
public static final int BFLOAT16_VALUENon-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
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
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 nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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 nameNullPointerException- if the argument is null
-
forNumber
- 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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.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 nameNullPointerException- if the argument is null
-