W3cubDocs

/TensorFlow 2.3

tf.tpu.experimental.initialize_tpu_system

View source on GitHub

Initialize the TPU devices.

Args
cluster_resolver A tf.distribute.cluster_resolver.TPUClusterResolver, which provides information about the TPU cluster.
Returns
The tf.tpu.Topology object for the topology of the TPU cluster.
Raises
RuntimeError If running inside a tf.function.
NotFoundError If no TPU devices found in eager mode.

© 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.3/api_docs/python/tf/tpu/experimental/initialize_tpu_system