View source on GitHub |
Enables / disables eager execution of tf.function
s.
tf.config.experimental_run_functions_eagerly( run_eagerly )
After calling tf.config.experimental_run_functions_eagerly(True)
all invocations of tf.function will run eagerly instead of running through a graph function.
This can be useful for debugging or profiling.
Similarly, calling tf.config.experimental_run_functions_eagerly(False)
will revert the behavior of all functions to graph functions.
Args | |
---|---|
run_eagerly | Boolean. Whether to run functions eagerly. |
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/config/experimental_run_functions_eagerly