Package ai.onnx.proto
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 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
Modifier and TypeFieldDescriptionstatic final int
Non-IEEE floating-point format based on IEEE754 single-precision floating-point number truncated to 16 bits.static final int
boolstatic final int
complex with float64 real and imaginary componentsstatic final int
complex with float32 real and imaginary componentsstatic final int
DOUBLE = 11;
static final int
Basic types.static final int
IEEE754 half-precision floating-point format (16 bits wide).static final int
int16_tstatic final int
int32_tstatic final int
int64_tstatic final int
int8_tstatic final int
stringstatic final int
uint16_tstatic final int
UINT32 = 12;
static final int
UINT64 = 13;
static final int
uint8_tstatic final int
UNDEFINED = 0;
-
Method Summary
Modifier and TypeMethodDescriptionstatic OnnxMl.TensorProto.DataType
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<OnnxMl.TensorProto.DataType>
static OnnxMl.TensorProto.DataType
valueOf
(int value) Deprecated.static OnnxMl.TensorProto.DataType
valueOf
(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static OnnxMl.TensorProto.DataType
Returns 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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in 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:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForType
in 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
-