forked from SciSharp/TensorFlow.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTF_DataType.cs
More file actions
59 lines (58 loc) · 1.83 KB
/
TF_DataType.cs
File metadata and controls
59 lines (58 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
namespace Tensorflow
{
/// <summary>
/// TF_DataType holds the type for a scalar value. E.g., one slot in a tensor.
/// The enum values here are identical to corresponding values in types.proto.
/// </summary>
public enum TF_DataType
{
DtInvalid = 0,
TF_FLOAT = 1,
TF_DOUBLE = 2,
TF_INT32 = 3, // Int32 tensors are always in 'host' memory.
TF_UINT8 = 4,
TF_INT16 = 5,
TF_INT8 = 6,
TF_STRING = 7,
TF_COMPLEX64 = 8, // Single-precision complex
TF_COMPLEX = 8, // Old identifier kept for API backwards compatibility
TF_INT64 = 9,
TF_BOOL = 10,
TF_QINT8 = 11, // Quantized int8
TF_QUINT8 = 12, // Quantized uint8
TF_QINT32 = 13, // Quantized int32
TF_BFLOAT16 = 14, // Float32 truncated to 16 bits. Only for cast ops.
TF_QINT16 = 15, // Quantized int16
TF_QUINT16 = 16, // Quantized uint16
TF_UINT16 = 17,
TF_COMPLEX128 = 18, // Double-precision complex
TF_HALF = 19,
TF_RESOURCE = 20,
TF_VARIANT = 21,
TF_UINT32 = 22,
TF_UINT64 = 23,
DtFloatRef = 101, // DT_FLOAT_REF
DtDoubleRef = 102, // DT_DOUBLE_REF
DtInt32Ref = 103, // DT_INT32_REF
DtUint8Ref = 104,
DtInt16Ref = 105,
DtInt8Ref = 106,
DtStringRef = 107,
DtComplex64Ref = 108,
DtInt64Ref = 109, // DT_INT64_REF
DtBoolRef = 110,
DtQint8Ref = 111,
DtQuint8Ref = 112,
DtQint32Ref = 113,
DtBfloat16Ref = 114,
DtQint16Ref = 115,
DtQuint16Ref = 116,
DtUint16Ref = 117,
DtComplex128Ref = 118,
DtHalfRef = 119,
DtResourceRef = 120,
DtVariantRef = 121,
DtUint32Ref = 122,
DtUint64Ref = 123,
}
}