tf.keras.backend.set_floatx

TensorFlow 1 version View source on GitHub

Sets the default float type.

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.