Keras data types (dtypes) are the same as TensorFlow Python data types, as shown in the following table:
Python type | Description |
---|---|
tf.float16 | 16-bit floating point |
tf.float32 | 32-bit floating point |
tf.float64 | 64-bit floating point |
tf.int8 | 8-bit signed integer |
tf.int16 | 16-bit signed integer |
tf.int32 | 32-bit signed integer |
tf.int64 | 64-bit signed integer |
tf.uint8 | 8-bit unsigned integer |
tf.string | Variable-length byte arrays |
tf.bool | Boolean |
tf.complex64 | Complex number made of two 32-bit floating points—one real and imaginary part |
tf.complex128 | Complex number made of two 64-bit floating points—one real and one imaginary part |
tf.qint8 | 8-bit signed integer used in quantized Ops |
tf.qint32 | 32-bit signed integer used in quantized Ops |
tf.quint8 | 8-bit unsigned integer used in quantized Ops |