public enum DataType extends java.lang.Enum<DataType> implements com.google.protobuf.ProtocolMessageEnum
(== suppress_warning documentation-presence ==) LINT.IfChangeProtobuf enum
tensorflow.DataType| Enum Constant and Description |
|---|
DT_BFLOAT16
Float32 truncated to 16 bits.
|
DT_BFLOAT16_REF
DT_BFLOAT16_REF = 114; |
DT_BOOL
DT_BOOL = 10; |
DT_BOOL_REF
DT_BOOL_REF = 110; |
DT_COMPLEX128
Double-precision complex
|
DT_COMPLEX128_REF
DT_COMPLEX128_REF = 118; |
DT_COMPLEX64
Single-precision complex
|
DT_COMPLEX64_REF
DT_COMPLEX64_REF = 108; |
DT_DOUBLE
DT_DOUBLE = 2; |
DT_DOUBLE_REF
DT_DOUBLE_REF = 102; |
DT_FLOAT
Data types that all computation devices are expected to be
capable to support.
|
DT_FLOAT_REF
Do not use! These are only for parameters.
|
DT_HALF
DT_HALF = 19; |
DT_HALF_REF
DT_HALF_REF = 119; |
DT_INT16
DT_INT16 = 5; |
DT_INT16_REF
DT_INT16_REF = 105; |
DT_INT32
DT_INT32 = 3; |
DT_INT32_REF
DT_INT32_REF = 103; |
DT_INT64
DT_INT64 = 9; |
DT_INT64_REF
DT_INT64_REF = 109; |
DT_INT8
DT_INT8 = 6; |
DT_INT8_REF
DT_INT8_REF = 106; |
DT_INVALID
Not a legal value for DataType.
|
DT_QINT16
Quantized int16
|
DT_QINT16_REF
DT_QINT16_REF = 115; |
DT_QINT32
Quantized int32
|
DT_QINT32_REF
DT_QINT32_REF = 113; |
DT_QINT8
Quantized int8
|
DT_QINT8_REF
DT_QINT8_REF = 111; |
DT_QUINT16
Quantized uint16
|
DT_QUINT16_REF
DT_QUINT16_REF = 116; |
DT_QUINT8
Quantized uint8
|
DT_QUINT8_REF
DT_QUINT8_REF = 112; |
DT_RESOURCE
DT_RESOURCE = 20; |
DT_RESOURCE_REF
DT_RESOURCE_REF = 120; |
DT_STRING
DT_STRING = 7; |
DT_STRING_REF
DT_STRING_REF = 107; |
DT_UINT16
DT_UINT16 = 17; |
DT_UINT16_REF
DT_UINT16_REF = 117; |
DT_UINT32
DT_UINT32 = 22; |
DT_UINT32_REF
DT_UINT32_REF = 122; |
DT_UINT64
DT_UINT64 = 23; |
DT_UINT64_REF
DT_UINT64_REF = 123; |
DT_UINT8
DT_UINT8 = 4; |
DT_UINT8_REF
DT_UINT8_REF = 104; |
DT_VARIANT
Arbitrary C++ data types
|
DT_VARIANT_REF
DT_VARIANT_REF = 121; |
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
DT_BFLOAT16_REF_VALUE
DT_BFLOAT16_REF = 114; |
static int |
DT_BFLOAT16_VALUE
Float32 truncated to 16 bits.
|
static int |
DT_BOOL_REF_VALUE
DT_BOOL_REF = 110; |
static int |
DT_BOOL_VALUE
DT_BOOL = 10; |
static int |
DT_COMPLEX128_REF_VALUE
DT_COMPLEX128_REF = 118; |
static int |
DT_COMPLEX128_VALUE
Double-precision complex
|
static int |
DT_COMPLEX64_REF_VALUE
DT_COMPLEX64_REF = 108; |
static int |
DT_COMPLEX64_VALUE
Single-precision complex
|
static int |
DT_DOUBLE_REF_VALUE
DT_DOUBLE_REF = 102; |
static int |
DT_DOUBLE_VALUE
DT_DOUBLE = 2; |
static int |
DT_FLOAT_REF_VALUE
Do not use! These are only for parameters.
|
static int |
DT_FLOAT_VALUE
Data types that all computation devices are expected to be
capable to support.
|
static int |
DT_HALF_REF_VALUE
DT_HALF_REF = 119; |
static int |
DT_HALF_VALUE
DT_HALF = 19; |
static int |
DT_INT16_REF_VALUE
DT_INT16_REF = 105; |
static int |
DT_INT16_VALUE
DT_INT16 = 5; |
static int |
DT_INT32_REF_VALUE
DT_INT32_REF = 103; |
static int |
DT_INT32_VALUE
DT_INT32 = 3; |
static int |
DT_INT64_REF_VALUE
DT_INT64_REF = 109; |
static int |
DT_INT64_VALUE
DT_INT64 = 9; |
static int |
DT_INT8_REF_VALUE
DT_INT8_REF = 106; |
static int |
DT_INT8_VALUE
DT_INT8 = 6; |
static int |
DT_INVALID_VALUE
Not a legal value for DataType.
|
static int |
DT_QINT16_REF_VALUE
DT_QINT16_REF = 115; |
static int |
DT_QINT16_VALUE
Quantized int16
|
static int |
DT_QINT32_REF_VALUE
DT_QINT32_REF = 113; |
static int |
DT_QINT32_VALUE
Quantized int32
|
static int |
DT_QINT8_REF_VALUE
DT_QINT8_REF = 111; |
static int |
DT_QINT8_VALUE
Quantized int8
|
static int |
DT_QUINT16_REF_VALUE
DT_QUINT16_REF = 116; |
static int |
DT_QUINT16_VALUE
Quantized uint16
|
static int |
DT_QUINT8_REF_VALUE
DT_QUINT8_REF = 112; |
static int |
DT_QUINT8_VALUE
Quantized uint8
|
static int |
DT_RESOURCE_REF_VALUE
DT_RESOURCE_REF = 120; |
static int |
DT_RESOURCE_VALUE
DT_RESOURCE = 20; |
static int |
DT_STRING_REF_VALUE
DT_STRING_REF = 107; |
static int |
DT_STRING_VALUE
DT_STRING = 7; |
static int |
DT_UINT16_REF_VALUE
DT_UINT16_REF = 117; |
static int |
DT_UINT16_VALUE
DT_UINT16 = 17; |
static int |
DT_UINT32_REF_VALUE
DT_UINT32_REF = 122; |
static int |
DT_UINT32_VALUE
DT_UINT32 = 22; |
static int |
DT_UINT64_REF_VALUE
DT_UINT64_REF = 123; |
static int |
DT_UINT64_VALUE
DT_UINT64 = 23; |
static int |
DT_UINT8_REF_VALUE
DT_UINT8_REF = 104; |
static int |
DT_UINT8_VALUE
DT_UINT8 = 4; |
static int |
DT_VARIANT_REF_VALUE
DT_VARIANT_REF = 121; |
static int |
DT_VARIANT_VALUE
Arbitrary C++ data types
|
| Modifier and Type | Method and Description |
|---|---|
static 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<DataType> |
internalGetValueMap() |
static DataType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static DataType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static DataType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataType DT_INVALID
Not a legal value for DataType. Used to indicate a DataType field has not been set.
DT_INVALID = 0;public static final DataType DT_FLOAT
Data types that all computation devices are expected to be capable to support.
DT_FLOAT = 1;public static final DataType DT_DOUBLE
DT_DOUBLE = 2;public static final DataType DT_INT32
DT_INT32 = 3;public static final DataType DT_UINT8
DT_UINT8 = 4;public static final DataType DT_INT16
DT_INT16 = 5;public static final DataType DT_INT8
DT_INT8 = 6;public static final DataType DT_STRING
DT_STRING = 7;public static final DataType DT_COMPLEX64
Single-precision complex
DT_COMPLEX64 = 8;public static final DataType DT_INT64
DT_INT64 = 9;public static final DataType DT_BOOL
DT_BOOL = 10;public static final DataType DT_QINT8
Quantized int8
DT_QINT8 = 11;public static final DataType DT_QUINT8
Quantized uint8
DT_QUINT8 = 12;public static final DataType DT_QINT32
Quantized int32
DT_QINT32 = 13;public static final DataType DT_BFLOAT16
Float32 truncated to 16 bits. Only for cast ops.
DT_BFLOAT16 = 14;public static final DataType DT_QINT16
Quantized int16
DT_QINT16 = 15;public static final DataType DT_QUINT16
Quantized uint16
DT_QUINT16 = 16;public static final DataType DT_UINT16
DT_UINT16 = 17;public static final DataType DT_COMPLEX128
Double-precision complex
DT_COMPLEX128 = 18;public static final DataType DT_HALF
DT_HALF = 19;public static final DataType DT_RESOURCE
DT_RESOURCE = 20;public static final DataType DT_VARIANT
Arbitrary C++ data types
DT_VARIANT = 21;public static final DataType DT_UINT32
DT_UINT32 = 22;public static final DataType DT_UINT64
DT_UINT64 = 23;public static final DataType DT_FLOAT_REF
Do not use! These are only for parameters. Every enum above should have a corresponding value below (verified by types_test).
DT_FLOAT_REF = 101;public static final DataType DT_DOUBLE_REF
DT_DOUBLE_REF = 102;public static final DataType DT_INT32_REF
DT_INT32_REF = 103;public static final DataType DT_UINT8_REF
DT_UINT8_REF = 104;public static final DataType DT_INT16_REF
DT_INT16_REF = 105;public static final DataType DT_INT8_REF
DT_INT8_REF = 106;public static final DataType DT_STRING_REF
DT_STRING_REF = 107;public static final DataType DT_COMPLEX64_REF
DT_COMPLEX64_REF = 108;public static final DataType DT_INT64_REF
DT_INT64_REF = 109;public static final DataType DT_BOOL_REF
DT_BOOL_REF = 110;public static final DataType DT_QINT8_REF
DT_QINT8_REF = 111;public static final DataType DT_QUINT8_REF
DT_QUINT8_REF = 112;public static final DataType DT_QINT32_REF
DT_QINT32_REF = 113;public static final DataType DT_BFLOAT16_REF
DT_BFLOAT16_REF = 114;public static final DataType DT_QINT16_REF
DT_QINT16_REF = 115;public static final DataType DT_QUINT16_REF
DT_QUINT16_REF = 116;public static final DataType DT_UINT16_REF
DT_UINT16_REF = 117;public static final DataType DT_COMPLEX128_REF
DT_COMPLEX128_REF = 118;public static final DataType DT_HALF_REF
DT_HALF_REF = 119;public static final DataType DT_RESOURCE_REF
DT_RESOURCE_REF = 120;public static final DataType DT_VARIANT_REF
DT_VARIANT_REF = 121;public static final DataType DT_UINT32_REF
DT_UINT32_REF = 122;public static final DataType DT_UINT64_REF
DT_UINT64_REF = 123;public static final DataType UNRECOGNIZED
public static final int DT_INVALID_VALUE
Not a legal value for DataType. Used to indicate a DataType field has not been set.
DT_INVALID = 0;public static final int DT_FLOAT_VALUE
Data types that all computation devices are expected to be capable to support.
DT_FLOAT = 1;public static final int DT_DOUBLE_VALUE
DT_DOUBLE = 2;public static final int DT_INT32_VALUE
DT_INT32 = 3;public static final int DT_UINT8_VALUE
DT_UINT8 = 4;public static final int DT_INT16_VALUE
DT_INT16 = 5;public static final int DT_INT8_VALUE
DT_INT8 = 6;public static final int DT_STRING_VALUE
DT_STRING = 7;public static final int DT_COMPLEX64_VALUE
Single-precision complex
DT_COMPLEX64 = 8;public static final int DT_INT64_VALUE
DT_INT64 = 9;public static final int DT_BOOL_VALUE
DT_BOOL = 10;public static final int DT_QINT8_VALUE
Quantized int8
DT_QINT8 = 11;public static final int DT_QUINT8_VALUE
Quantized uint8
DT_QUINT8 = 12;public static final int DT_QINT32_VALUE
Quantized int32
DT_QINT32 = 13;public static final int DT_BFLOAT16_VALUE
Float32 truncated to 16 bits. Only for cast ops.
DT_BFLOAT16 = 14;public static final int DT_QINT16_VALUE
Quantized int16
DT_QINT16 = 15;public static final int DT_QUINT16_VALUE
Quantized uint16
DT_QUINT16 = 16;public static final int DT_UINT16_VALUE
DT_UINT16 = 17;public static final int DT_COMPLEX128_VALUE
Double-precision complex
DT_COMPLEX128 = 18;public static final int DT_HALF_VALUE
DT_HALF = 19;public static final int DT_RESOURCE_VALUE
DT_RESOURCE = 20;public static final int DT_VARIANT_VALUE
Arbitrary C++ data types
DT_VARIANT = 21;public static final int DT_UINT32_VALUE
DT_UINT32 = 22;public static final int DT_UINT64_VALUE
DT_UINT64 = 23;public static final int DT_FLOAT_REF_VALUE
Do not use! These are only for parameters. Every enum above should have a corresponding value below (verified by types_test).
DT_FLOAT_REF = 101;public static final int DT_DOUBLE_REF_VALUE
DT_DOUBLE_REF = 102;public static final int DT_INT32_REF_VALUE
DT_INT32_REF = 103;public static final int DT_UINT8_REF_VALUE
DT_UINT8_REF = 104;public static final int DT_INT16_REF_VALUE
DT_INT16_REF = 105;public static final int DT_INT8_REF_VALUE
DT_INT8_REF = 106;public static final int DT_STRING_REF_VALUE
DT_STRING_REF = 107;public static final int DT_COMPLEX64_REF_VALUE
DT_COMPLEX64_REF = 108;public static final int DT_INT64_REF_VALUE
DT_INT64_REF = 109;public static final int DT_BOOL_REF_VALUE
DT_BOOL_REF = 110;public static final int DT_QINT8_REF_VALUE
DT_QINT8_REF = 111;public static final int DT_QUINT8_REF_VALUE
DT_QUINT8_REF = 112;public static final int DT_QINT32_REF_VALUE
DT_QINT32_REF = 113;public static final int DT_BFLOAT16_REF_VALUE
DT_BFLOAT16_REF = 114;public static final int DT_QINT16_REF_VALUE
DT_QINT16_REF = 115;public static final int DT_QUINT16_REF_VALUE
DT_QUINT16_REF = 116;public static final int DT_UINT16_REF_VALUE
DT_UINT16_REF = 117;public static final int DT_COMPLEX128_REF_VALUE
DT_COMPLEX128_REF = 118;public static final int DT_HALF_REF_VALUE
DT_HALF_REF = 119;public static final int DT_RESOURCE_REF_VALUE
DT_RESOURCE_REF = 120;public static final int DT_VARIANT_REF_VALUE
DT_VARIANT_REF = 121;public static final int DT_UINT32_REF_VALUE
DT_UINT32_REF = 122;public static final int DT_UINT64_REF_VALUE
DT_UINT64_REF = 123;public static DataType[] values()
for (DataType c : DataType.values()) System.out.println(c);
public static DataType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static DataType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static DataType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<DataType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static DataType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)