tf.tpu.experimental.initialize_tpu_system

Initialize the TPU devices.

Compat aliases for migration

See Migration guide for more details.

tf.compat.v1.tpu.experimental.initialize_tpu_system

cluster_resolver A tf.distribute.cluster_resolver.TPUClusterResolver, which provides information about the TPU cluster.

The tf.tpu.Topology object for the topology of the TPU cluster.

RuntimeError If no TPU devices found for eager execution or if run in a tf.function.