Set the default float dtype.
tf.keras.backend.set_floatx(
value
)
Args |
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')
Raises |
ValueError
|
In case of invalid value.
|