tf.config.experimental_run_functions_eagerly
| Просмотреть исходный код на GitHub |
Включает/выключает жадное выполнение tf.function.
tf.config.experimental_run_functions_eagerly(
run_eagerly
)
После вызова tf.config.experimental_run_functions_eagerly(True) все вызовы tf.function будут выполняться жадно вместо выполнения через функцию графа.
Это может быть полезно для отладки или профилирования.
Аналогично, вызов tf.config.experimental_run_functions_eagerly(False) вернёт поведение всех функций к функциям графа.
| Аргументы | |
|---|---|
run_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