Package onnx
Enum Onnx.TensorProto.DataType
- java.lang.Object
-
- java.lang.Enum<Onnx.TensorProto.DataType>
-
- onnx.Onnx.TensorProto.DataType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,java.io.Serializable
,java.lang.Comparable<Onnx.TensorProto.DataType>
- Enclosing class:
- Onnx.TensorProto
public static enum Onnx.TensorProto.DataType extends java.lang.Enum<Onnx.TensorProto.DataType> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumonnx.TensorProto.DataType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOL
boolCOMPLEX128
complex with float64 real and imaginary componentsCOMPLEX64
complex with float32 real and imaginary componentsDOUBLE
DOUBLE = 11;
FLOAT
Basic types.FLOAT16
Advanced typesINT16
int16_tINT32
int32_tINT64
int64_tINT8
int8_tSTRING
stringUINT16
uint16_tUINT32
UINT32 = 12;
UINT64
UINT64 = 13;
UINT8
uint8_tUNDEFINED
UNDEFINED = 0;
-
Field Summary
Fields Modifier and Type Field Description static int
BOOL_VALUE
boolstatic int
COMPLEX128_VALUE
complex with float64 real and imaginary componentsstatic int
COMPLEX64_VALUE
complex with float32 real and imaginary componentsstatic int
DOUBLE_VALUE
DOUBLE = 11;
static int
FLOAT_VALUE
Basic types.static int
FLOAT16_VALUE
Advanced typesstatic int
INT16_VALUE
int16_tstatic int
INT32_VALUE
int32_tstatic int
INT64_VALUE
int64_tstatic int
INT8_VALUE
int8_tstatic int
STRING_VALUE
stringstatic int
UINT16_VALUE
uint16_tstatic int
UINT32_VALUE
UINT32 = 12;
static int
UINT64_VALUE
UINT64 = 13;
static int
UINT8_VALUE
uint8_tstatic int
UNDEFINED_VALUE
UNDEFINED = 0;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Onnx.TensorProto.DataType
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<Onnx.TensorProto.DataType>
internalGetValueMap()
static Onnx.TensorProto.DataType
valueOf(int value)
Deprecated.static Onnx.TensorProto.DataType
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static Onnx.TensorProto.DataType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Onnx.TensorProto.DataType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNDEFINED
public static final Onnx.TensorProto.DataType UNDEFINED
UNDEFINED = 0;
-
FLOAT
public static final Onnx.TensorProto.DataType FLOAT
Basic types.
FLOAT = 1;
-
UINT8
public static final Onnx.TensorProto.DataType UINT8
uint8_t
UINT8 = 2;
-
INT8
public static final Onnx.TensorProto.DataType INT8
int8_t
INT8 = 3;
-
UINT16
public static final Onnx.TensorProto.DataType UINT16
uint16_t
UINT16 = 4;
-
INT16
public static final Onnx.TensorProto.DataType INT16
int16_t
INT16 = 5;
-
INT32
public static final Onnx.TensorProto.DataType INT32
int32_t
INT32 = 6;
-
INT64
public static final Onnx.TensorProto.DataType INT64
int64_t
INT64 = 7;
-
STRING
public static final Onnx.TensorProto.DataType STRING
string
STRING = 8;
-
BOOL
public static final Onnx.TensorProto.DataType BOOL
bool
BOOL = 9;
-
FLOAT16
public static final Onnx.TensorProto.DataType FLOAT16
Advanced types
FLOAT16 = 10;
-
DOUBLE
public static final Onnx.TensorProto.DataType DOUBLE
DOUBLE = 11;
-
UINT32
public static final Onnx.TensorProto.DataType UINT32
UINT32 = 12;
-
UINT64
public static final Onnx.TensorProto.DataType UINT64
UINT64 = 13;
-
COMPLEX64
public static final Onnx.TensorProto.DataType COMPLEX64
complex with float32 real and imaginary components
COMPLEX64 = 14;
-
COMPLEX128
public static final Onnx.TensorProto.DataType COMPLEX128
complex with float64 real and imaginary components
COMPLEX128 = 15;
-
-
Field Detail
-
UNDEFINED_VALUE
public static final int UNDEFINED_VALUE
UNDEFINED = 0;
- See Also:
- Constant Field Values
-
FLOAT_VALUE
public static final int FLOAT_VALUE
Basic types.
FLOAT = 1;
- See Also:
- Constant Field Values
-
UINT8_VALUE
public static final int UINT8_VALUE
uint8_t
UINT8 = 2;
- See Also:
- Constant Field Values
-
INT8_VALUE
public static final int INT8_VALUE
int8_t
INT8 = 3;
- See Also:
- Constant Field Values
-
UINT16_VALUE
public static final int UINT16_VALUE
uint16_t
UINT16 = 4;
- See Also:
- Constant Field Values
-
INT16_VALUE
public static final int INT16_VALUE
int16_t
INT16 = 5;
- See Also:
- Constant Field Values
-
INT32_VALUE
public static final int INT32_VALUE
int32_t
INT32 = 6;
- See Also:
- Constant Field Values
-
INT64_VALUE
public static final int INT64_VALUE
int64_t
INT64 = 7;
- See Also:
- Constant Field Values
-
STRING_VALUE
public static final int STRING_VALUE
string
STRING = 8;
- See Also:
- Constant Field Values
-
BOOL_VALUE
public static final int BOOL_VALUE
bool
BOOL = 9;
- See Also:
- Constant Field Values
-
FLOAT16_VALUE
public static final int FLOAT16_VALUE
Advanced types
FLOAT16 = 10;
- See Also:
- Constant Field Values
-
DOUBLE_VALUE
public static final int DOUBLE_VALUE
DOUBLE = 11;
- See Also:
- Constant Field Values
-
UINT32_VALUE
public static final int UINT32_VALUE
UINT32 = 12;
- See Also:
- Constant Field Values
-
UINT64_VALUE
public static final int UINT64_VALUE
UINT64 = 13;
- See Also:
- Constant Field Values
-
COMPLEX64_VALUE
public static final int COMPLEX64_VALUE
complex with float32 real and imaginary components
COMPLEX64 = 14;
- See Also:
- Constant Field Values
-
COMPLEX128_VALUE
public static final int COMPLEX128_VALUE
complex with float64 real and imaginary components
COMPLEX128 = 15;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Onnx.TensorProto.DataType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Onnx.TensorProto.DataType c : Onnx.TensorProto.DataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Onnx.TensorProto.DataType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- 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 public static Onnx.TensorProto.DataType valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
forNumber
public static Onnx.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<Onnx.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 Onnx.TensorProto.DataType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-