These helpers control the caps that built-in training loops obey when running
fit(), evaluate(), or predict(). The values can also be provided via the
KERAS_MAX_EPOCHS or KERAS_MAX_STEPS_PER_EPOCH environment variables to
quickly constrain a run without modifying source code.
config_max_epochs()config_set_max_epochs(max_epochs)
config_max_steps_per_epoch()
config_set_max_steps_per_epoch(max_steps_per_epoch)
config_max_epochs() and config_max_steps_per_epoch() return the current
integer limits (or NULL if the cap is unset). The setter variants return
NULL invisibly and are called for side effects.
Integer upper bound for epochs processed by built-in training loops. Use
NULL to remove the cap.
Integer upper bound for steps processed per epoch by built-in training
loops. Use NULL to remove the cap.
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_nnx_enabled()
config_is_traceback_filtering_enabled()
config_set_backend()
config_set_dtype_policy()
config_set_epsilon()
config_set_floatx()
config_set_image_data_format()