tf.tpu.experimental.shutdown_tpu_system
Закрывает устройства TPU.
tf.tpu.experimental.shutdown_tpu_system(
cluster_resolver=None
)
Это очистит все кэши, даже те, которые поддерживаются последовательными вызовами tf.tpu.experimental.initialize_tpu_system, например, кэш компиляции.
| Аргументы | |
|---|---|
cluster_resolver | tf.distribute.cluster_resolver.TPUClusterResolver, предоставляющий информацию о кластере TPU. |
| Исключения | |
|---|---|
RuntimeError | Если для выполнения Eager не найдено устройств TPU или если выполняется в tf.function. |
© 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/r2.4/api_docs/python/tf/tpu/experimental/shutdown_tpu_system