Set the default float dtype.
Note
It is not recommended to set this to "float16"
for training,
as this will likely cause numeric stability issues.
Instead, mixed precision, which leverages
a mix of float16
and float32
. It can be configured by calling
keras3::keras$mixed_precision$set_dtype_policy('mixed_float16')
.
Examples
config_set_floatx('float64')
config_floatx()
# Set it back to float32
config_set_floatx('float32')
See also
Other config backend: config_backend()
config_epsilon()
config_floatx()
config_image_data_format()
config_set_epsilon()
config_set_image_data_format()
Other backend: clear_session()
config_backend()
config_epsilon()
config_floatx()
config_image_data_format()
config_set_epsilon()
config_set_image_data_format()
Other config: config_backend()
config_disable_interactive_logging()
config_disable_traceback_filtering()
config_enable_interactive_logging()
config_enable_traceback_filtering()
config_enable_unsafe_deserialization()
config_epsilon()
config_floatx()
config_image_data_format()
config_is_interactive_logging_enabled()
config_is_traceback_filtering_enabled()
config_set_backend()
config_set_epsilon()
config_set_image_data_format()