tf.keras.backend.set_floatx

Set the default float dtype.

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

Examples:

keras.config.floatx()
'float32'
keras.config.set_floatx('float64')
keras.config.floatx()
'float64'
# Set it back to float32
keras.config.set_floatx('float32')

ValueError In case of invalid value.