tf.keras.callbacks.TerminateOnNaN
Stay organized with collections
Save and categorize content based on your preferences.
Callback that terminates training when a NaN loss is encountered.
Inherits From: Callback
View aliases
Compat aliases for migration
See
Migration guide for
more details.
`tf.compat.v1.keras.callbacks.TerminateOnNaN`
tf.keras.callbacks.TerminateOnNaN()
Methods
set_model
View source
set_model(
model
)
set_params
View source
set_params(
params
)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[],[],null,["# tf.keras.callbacks.TerminateOnNaN\n\n\u003cbr /\u003e\n\n|---------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/keras-team/keras/tree/v2.11.0/keras/callbacks.py#L987-L1004) |\n\nCallback that terminates training when a NaN loss is encountered.\n\nInherits From: [`Callback`](../../../tf/keras/callbacks/Callback)\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n\\`tf.compat.v1.keras.callbacks.TerminateOnNaN\\`\n\n\u003cbr /\u003e\n\n tf.keras.callbacks.TerminateOnNaN()\n\nMethods\n-------\n\n### `set_model`\n\n[View source](https://github.com/keras-team/keras/tree/v2.11.0/keras/callbacks.py#L695-L696) \n\n set_model(\n model\n )\n\n### `set_params`\n\n[View source](https://github.com/keras-team/keras/tree/v2.11.0/keras/callbacks.py#L692-L693) \n\n set_params(\n params\n )"]]