config_set_floatx | R Documentation |
Set the default float dtype.
config_set_floatx(value)
value |
String; |
No return value, called for side effects.
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')
.
config_floatx()
## [1] "float32"
config_set_floatx('float64') config_floatx()
## [1] "float64"
# Set it back to float32 config_set_floatx('float32')
ValueError: In case of invalid value.
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_flash_attention()
config_disable_interactive_logging()
config_disable_traceback_filtering()
config_dtype_policy()
config_enable_flash_attention()
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_dtype_policy()
config_set_epsilon()
config_set_image_data_format()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.