Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

tf.tpu.experimental.initialize_tpu_system

TensorFlow 1 version View source on GitHub

Initialize the TPU devices.

tf.tpu.experimental.initialize_tpu_system(
    cluster_resolver=None
)

Used in the notebooks

Used in the guide

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 no TPU devices found for eager execution or if run in a tf.function.