1syntax = "proto3"; 2 3package tensorflow; 4option cc_enable_arenas = true; 5option java_outer_classname = "TypesProtos"; 6option java_multiple_files = true; 7option java_package = "org.tensorflow.framework"; 8 9// LINT.IfChange 10enum DataType { 11 // Not a legal value for DataType. Used to indicate a DataType field 12 // has not been set. 13 DT_INVALID = 0; 14 15 // Data types that all computation devices are expected to be 16 // capable to support. 17 DT_FLOAT = 1; 18 DT_DOUBLE = 2; 19 DT_INT32 = 3; 20 DT_UINT8 = 4; 21 DT_INT16 = 5; 22 DT_INT8 = 6; 23 DT_STRING = 7; 24 DT_COMPLEX64 = 8; // Single-precision complex 25 DT_INT64 = 9; 26 DT_BOOL = 10; 27 DT_QINT8 = 11; // Quantized int8 28 DT_QUINT8 = 12; // Quantized uint8 29 DT_QINT32 = 13; // Quantized int32 30 DT_BFLOAT16 = 14; // Float32 truncated to 16 bits. Only for cast ops. 31 DT_QINT16 = 15; // Quantized int16 32 DT_QUINT16 = 16; // Quantized uint16 33 DT_UINT16 = 17; 34 DT_COMPLEX128 = 18; // Double-precision complex 35 DT_HALF = 19; 36 DT_RESOURCE = 20; 37 DT_VARIANT = 21; // Arbitrary C++ data types 38 DT_UINT32 = 22; 39 DT_UINT64 = 23; 40 41 // Do not use! These are only for parameters. Every enum above 42 // should have a corresponding value below (verified by types_test). 43 DT_FLOAT_REF = 101; 44 DT_DOUBLE_REF = 102; 45 DT_INT32_REF = 103; 46 DT_UINT8_REF = 104; 47 DT_INT16_REF = 105; 48 DT_INT8_REF = 106; 49 DT_STRING_REF = 107; 50 DT_COMPLEX64_REF = 108; 51 DT_INT64_REF = 109; 52 DT_BOOL_REF = 110; 53 DT_QINT8_REF = 111; 54 DT_QUINT8_REF = 112; 55 DT_QINT32_REF = 113; 56 DT_BFLOAT16_REF = 114; 57 DT_QINT16_REF = 115; 58 DT_QUINT16_REF = 116; 59 DT_UINT16_REF = 117; 60 DT_COMPLEX128_REF = 118; 61 DT_HALF_REF = 119; 62 DT_RESOURCE_REF = 120; 63 DT_VARIANT_REF = 121; 64 DT_UINT32_REF = 122; 65 DT_UINT64_REF = 123; 66} 67// LINT.ThenChange( 68// https://www.tensorflow.org/code/tensorflow/c/c_api.h, 69// https://www.tensorflow.org/code/tensorflow/go/tensor.go, 70// https://www.tensorflow.org/code/tensorflow/core/framework/tensor.cc, 71// https://www.tensorflow.org/code/tensorflow/core/framework/types.h, 72// https://www.tensorflow.org/code/tensorflow/core/framework/types.cc, 73// https://www.tensorflow.org/code/tensorflow/python/framework/dtypes.py, 74// https://www.tensorflow.org/code/tensorflow/python/framework/function.py) 75