tf.keras.backend.set_floatx

Sets the default float type.

Used in the notebooks

Used in the tutorials

value String; 'float16', 'float32', or 'float64'.

Example:

tf.keras.backend.floatx() 'float32' tf.keras.backend.set_floatx('float64') tf.keras.backend.floatx() 'float64' tf.keras.backend.set_floatx('float32')

ValueError In case of invalid value.