April 2017
Intermediate to advanced
320 pages
7h 46m
English
In addition to rank and shape, tensors have a data type. The following is a list of the data types:
| Data type | Python type | Description |
| DT_FLOAT | tf.float32 | 32-bit floating point. |
| DT_DOUBLE | tf.float64 | 64-bit floating point. |
| DT_INT8 | tf.int8 | 8-bit signed integer. |
| DT_INT16 | tf.int16 | 16-bit signed integer. |
| DT_INT32 | tf.int32 | 32-bit signed integer. |
| DT_INT64 | tf.int64 | 64-bit signed integer. |
| DT_UINT8 | tf.uint8 | 8-bit unsigned integer. |
| DT_STRING | tf.string | Variable length byte arrays. Each element of a tensor is a byte array. |
| DT_BOOL | tf.bool | Boolean. |
| DT_COMPLEX64 | tf.complex64 | Complex number made of two 32 bits floating points, real and imaginary parts. |
| DT_COMPLEX128 | tf.complex128 | Complex number made up of two 64 bits ... |
Read now
Unlock full access