DataType

public final enum DataType

 (== suppress_warning documentation-presence ==)
 LINT.IfChange
 
Protobuf enum tensorflow.DataType

Constants

int DT_BFLOAT16_REF_VALUE DT_BFLOAT16_REF = 114;
int DT_BFLOAT16_VALUE
 Float32 truncated to 16 bits.
int DT_BOOL_REF_VALUE DT_BOOL_REF = 110;
int DT_BOOL_VALUE DT_BOOL = 10;
int DT_COMPLEX128_REF_VALUE DT_COMPLEX128_REF = 118;
int DT_COMPLEX128_VALUE
 Double-precision complex
 
DT_COMPLEX128 = 18;
int DT_COMPLEX64_REF_VALUE DT_COMPLEX64_REF = 108;
int DT_COMPLEX64_VALUE
 Single-precision complex
 
DT_COMPLEX64 = 8;
int DT_DOUBLE_REF_VALUE DT_DOUBLE_REF = 102;
int DT_DOUBLE_VALUE DT_DOUBLE = 2;
int DT_FLOAT_REF_VALUE
 Do not use!  These are only for parameters.
int DT_FLOAT_VALUE
 Data types that all computation devices are expected to be
 capable to support.
int DT_HALF_REF_VALUE DT_HALF_REF = 119;
int DT_HALF_VALUE DT_HALF = 19;
int DT_INT16_REF_VALUE DT_INT16_REF = 105;
int DT_INT16_VALUE DT_INT16 = 5;
int DT_INT32_REF_VALUE DT_INT32_REF = 103;
int DT_INT32_VALUE DT_INT32 = 3;
int DT_INT64_REF_VALUE DT_INT64_REF = 109;
int DT_INT64_VALUE DT_INT64 = 9;
int DT_INT8_REF_VALUE DT_INT8_REF = 106;
int DT_INT8_VALUE DT_INT8 = 6;
int DT_INVALID_VALUE
 Not a legal value for DataType.
int DT_QINT16_REF_VALUE DT_QINT16_REF = 115;
int DT_QINT16_VALUE
 Quantized int16
 
DT_QINT16 = 15;
int DT_QINT32_REF_VALUE DT_QINT32_REF = 113;
int DT_QINT32_VALUE
 Quantized int32
 
DT_QINT32 = 13;
int DT_QINT8_REF_VALUE DT_QINT8_REF = 111;
int DT_QINT8_VALUE
 Quantized int8
 
DT_QINT8 = 11;
int DT_QUINT16_REF_VALUE DT_QUINT16_REF = 116;
int DT_QUINT16_VALUE
 Quantized uint16
 
DT_QUINT16 = 16;
int DT_QUINT8_REF_VALUE DT_QUINT8_REF = 112;
int DT_QUINT8_VALUE
 Quantized uint8
 
DT_QUINT8 = 12;
int DT_RESOURCE_REF_VALUE DT_RESOURCE_REF = 120;
int DT_RESOURCE_VALUE DT_RESOURCE = 20;
int DT_STRING_REF_VALUE DT_STRING_REF = 107;
int DT_STRING_VALUE DT_STRING = 7;
int DT_UINT16_REF_VALUE DT_UINT16_REF = 117;
int DT_UINT16_VALUE DT_UINT16 = 17;
int DT_UINT32_REF_VALUE DT_UINT32_REF = 122;
int DT_UINT32_VALUE DT_UINT32 = 22;
int DT_UINT64_REF_VALUE DT_UINT64_REF = 123;
int DT_UINT64_VALUE DT_UINT64 = 23;
int DT_UINT8_REF_VALUE DT_UINT8_REF = 104;
int DT_UINT8_VALUE DT_UINT8 = 4;
int DT_VARIANT_REF_VALUE DT_VARIANT_REF = 121;
int DT_VARIANT_VALUE
 Arbitrary C++ data types
 
DT_VARIANT = 21;

Inherited Methods

Enum Values

public static final DataType DT_BFLOAT16

 Float32 truncated to 16 bits.  Only for cast ops.
 
DT_BFLOAT16 = 14;

public static final DataType DT_BFLOAT16_REF

DT_BFLOAT16_REF = 114;

public static final DataType DT_BOOL

DT_BOOL = 10;

public static final DataType DT_BOOL_REF

DT_BOOL_REF = 110;

public static final DataType DT_COMPLEX128

 Double-precision complex
 
DT_COMPLEX128 = 18;

public static final DataType DT_COMPLEX128_REF

DT_COMPLEX128_REF = 118;

public static final DataType DT_COMPLEX64

 Single-precision complex
 
DT_COMPLEX64 = 8;

public static final DataType DT_COMPLEX64_REF

DT_COMPLEX64_REF = 108;

public static final DataType DT_DOUBLE

DT_DOUBLE = 2;

public static final DataType DT_DOUBLE_REF

DT_DOUBLE_REF = 102;

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_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_HALF

DT_HALF = 19;

public static final DataType DT_HALF_REF

DT_HALF_REF = 119;

public static final DataType DT_INT16

DT_INT16 = 5;

public static final DataType DT_INT16_REF

DT_INT16_REF = 105;

public static final DataType DT_INT32

DT_INT32 = 3;

public static final DataType DT_INT32_REF

DT_INT32_REF = 103;

public static final DataType DT_INT64

DT_INT64 = 9;

public static final DataType DT_INT64_REF

DT_INT64_REF = 109;

public static final DataType DT_INT8

DT_INT8 = 6;

public static final DataType DT_INT8_REF

DT_INT8_REF = 106;

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_QINT16

 Quantized int16
 
DT_QINT16 = 15;

public static final DataType DT_QINT16_REF

DT_QINT16_REF = 115;

public static final DataType DT_QINT32

 Quantized int32
 
DT_QINT32 = 13;

public static final DataType DT_QINT32_REF

DT_QINT32_REF = 113;

public static final DataType DT_QINT8

 Quantized int8
 
DT_QINT8 = 11;

public static final DataType DT_QINT8_REF

DT_QINT8_REF = 111;

public static final DataType DT_QUINT16

 Quantized uint16
 
DT_QUINT16 = 16;

public static final DataType DT_QUINT16_REF

DT_QUINT16_REF = 116;

public static final DataType DT_QUINT8

 Quantized uint8
 
DT_QUINT8 = 12;

public static final DataType DT_QUINT8_REF

DT_QUINT8_REF = 112;

public static final DataType DT_RESOURCE

DT_RESOURCE = 20;

public static final DataType DT_RESOURCE_REF

DT_RESOURCE_REF = 120;

public static final DataType DT_STRING

DT_STRING = 7;

public static final DataType DT_STRING_REF

DT_STRING_REF = 107;

public static final DataType DT_UINT16

DT_UINT16 = 17;

public static final DataType DT_UINT16_REF

DT_UINT16_REF = 117;

public static final DataType DT_UINT32

DT_UINT32 = 22;

public static final DataType DT_UINT32_REF

DT_UINT32_REF = 122;

public static final DataType DT_UINT64

DT_UINT64 = 23;

public static final DataType DT_UINT64_REF

DT_UINT64_REF = 123;

public static final DataType DT_UINT8

DT_UINT8 = 4;

public static final DataType DT_UINT8_REF

DT_UINT8_REF = 104;

public static final DataType DT_VARIANT

 Arbitrary C++ data types
 
DT_VARIANT = 21;

public static final DataType DT_VARIANT_REF

DT_VARIANT_REF = 121;

public static final DataType UNRECOGNIZED

Constants

public static final int DT_BFLOAT16_REF_VALUE

DT_BFLOAT16_REF = 114;

Constant Value: 114

public static final int DT_BFLOAT16_VALUE

 Float32 truncated to 16 bits.  Only for cast ops.
 
DT_BFLOAT16 = 14;

Constant Value: 14

public static final int DT_BOOL_REF_VALUE

DT_BOOL_REF = 110;

Constant Value: 110

public static final int DT_BOOL_VALUE

DT_BOOL = 10;

Constant Value: 10

public static final int DT_COMPLEX128_REF_VALUE

DT_COMPLEX128_REF = 118;

Constant Value: 118

public static final int DT_COMPLEX128_VALUE

 Double-precision complex
 
DT_COMPLEX128 = 18;

Constant Value: 18

public static final int DT_COMPLEX64_REF_VALUE

DT_COMPLEX64_REF = 108;

Constant Value: 108

public static final int DT_COMPLEX64_VALUE

 Single-precision complex
 
DT_COMPLEX64 = 8;

Constant Value: 8

public static final int DT_DOUBLE_REF_VALUE

DT_DOUBLE_REF = 102;

Constant Value: 102

public static final int DT_DOUBLE_VALUE

DT_DOUBLE = 2;

Constant Value: 2

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;

Constant Value: 101

public static final int DT_FLOAT_VALUE

 Data types that all computation devices are expected to be
 capable to support.
 
DT_FLOAT = 1;

Constant Value: 1

public static final int DT_HALF_REF_VALUE

DT_HALF_REF = 119;

Constant Value: 119

public static final int DT_HALF_VALUE

DT_HALF = 19;

Constant Value: 19

public static final int DT_INT16_REF_VALUE

DT_INT16_REF = 105;

Constant Value: 105

public static final int DT_INT16_VALUE

DT_INT16 = 5;

Constant Value: 5

public static final int DT_INT32_REF_VALUE

DT_INT32_REF = 103;

Constant Value: 103

public static final int DT_INT32_VALUE

DT_INT32 = 3;

Constant Value: 3

public static final int DT_INT64_REF_VALUE

DT_INT64_REF = 109;

Constant Value: 109

public static final int DT_INT64_VALUE

DT_INT64 = 9;

Constant Value: 9

public static final int DT_INT8_REF_VALUE

DT_INT8_REF = 106;

Constant Value: 106

public static final int DT_INT8_VALUE

DT_INT8 = 6;

Constant Value: 6

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;

Constant Value: 0

public static final int DT_QINT16_REF_VALUE

DT_QINT16_REF = 115;

Constant Value: 115

public static final int DT_QINT16_VALUE

 Quantized int16
 
DT_QINT16 = 15;

Constant Value: 15

public static final int DT_QINT32_REF_VALUE

DT_QINT32_REF = 113;

Constant Value: 113

public static final int DT_QINT32_VALUE

 Quantized int32
 
DT_QINT32 = 13;

Constant Value: 13

public static final int DT_QINT8_REF_VALUE

DT_QINT8_REF = 111;

Constant Value: 111

public static final int DT_QINT8_VALUE

 Quantized int8
 
DT_QINT8 = 11;

Constant Value: 11

public static final int DT_QUINT16_REF_VALUE

DT_QUINT16_REF = 116;

Constant Value: 116

public static final int DT_QUINT16_VALUE

 Quantized uint16
 
DT_QUINT16 = 16;

Constant Value: 16

public static final int DT_QUINT8_REF_VALUE

DT_QUINT8_REF = 112;

Constant Value: 112

public static final int DT_QUINT8_VALUE

 Quantized uint8
 
DT_QUINT8 = 12;

Constant Value: 12

public static final int DT_RESOURCE_REF_VALUE

DT_RESOURCE_REF = 120;

Constant Value: 120

public static final int DT_RESOURCE_VALUE

DT_RESOURCE = 20;

Constant Value: 20

public static final int DT_STRING_REF_VALUE

DT_STRING_REF = 107;

Constant Value: 107

public static final int DT_STRING_VALUE

DT_STRING = 7;

Constant Value: 7

public static final int DT_UINT16_REF_VALUE

DT_UINT16_REF = 117;

Constant Value: 117

public static final int DT_UINT16_VALUE

DT_UINT16 = 17;

Constant Value: 17

public static final int DT_UINT32_REF_VALUE

DT_UINT32_REF = 122;

Constant Value: 122

public static final int DT_UINT32_VALUE

DT_UINT32 = 22;

Constant Value: 22

public static final int DT_UINT64_REF_VALUE

DT_UINT64_REF = 123;

Constant Value: 123

public static final int DT_UINT64_VALUE

DT_UINT64 = 23;

Constant Value: 23

public static final int DT_UINT8_REF_VALUE

DT_UINT8_REF = 104;

Constant Value: 104

public static final int DT_UINT8_VALUE

DT_UINT8 = 4;

Constant Value: 4

public static final int DT_VARIANT_REF_VALUE

DT_VARIANT_REF = 121;

Constant Value: 121

public static final int DT_VARIANT_VALUE

 Arbitrary C++ data types
 
DT_VARIANT = 21;

Constant Value: 21