tf.keras.backend.set_epsilon
Stay organized with collections
Save and categorize content based on your preferences.
Sets the value of the fuzz factor used in numeric expressions.
tf.keras.backend.set_epsilon(
value
)
Arguments |
value
|
float. New value of epsilon.
|
Example:
tf.keras.backend.epsilon()
1e-07
tf.keras.backend.set_epsilon(1e-5)
tf.keras.backend.epsilon()
1e-05
tf.keras.backend.set_epsilon(1e-7)
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.
Last updated 2020-10-01 UTC.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.keras.backend.set_epsilon\n\n\u003cbr /\u003e\n\n|--------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------|\n| [TensorFlow 1 version](/versions/r1.15/api_docs/python/tf/keras/backend/set_epsilon) | [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.2.0/tensorflow/python/keras/backend_config.py#L46-L62) |\n\nSets the value of the fuzz factor used in numeric expressions.\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.backend.set_epsilon`](/api_docs/python/tf/keras/backend/set_epsilon)\n\n\u003cbr /\u003e\n\n tf.keras.backend.set_epsilon(\n value\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Arguments --------- ||\n|---------|------------------------------|\n| `value` | float. New value of epsilon. |\n\n\u003cbr /\u003e\n\n#### Example:\n\n\u003e \u003e \u003e tf.keras.backend.epsilon()\n\u003e \u003e \u003e 1e-07\n\u003e \u003e \u003e tf.keras.backend.set_epsilon(1e-5)\n\u003e \u003e \u003e tf.keras.backend.epsilon()\n\u003e \u003e \u003e 1e-05\n\u003e \u003e \u003e tf.keras.backend.set_epsilon(1e-7)"]]