Skip to content

Commit

Permalink
Merge pull request #2303 from 8bitmp3:update-tpu
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 627147864
  • Loading branch information
copybara-github committed Apr 22, 2024
2 parents 9efadf0 + 0aeef4b commit 10eef0f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions site/en/guide/tpu.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"id": "Tce3stUlHN0L"
},
"source": [
"##### Copyright 2018 The TensorFlow Authors.\n"
"##### Copyright 2024 The TensorFlow Authors.\n"
]
},
{
Expand Down Expand Up @@ -81,7 +81,7 @@
"id": "ebf7f8489bb7"
},
"source": [
"Before you run this Colab notebook, make sure that your hardware accelerator is a TPU by checking your notebook settings: **Runtime** > **Change runtime type** > **Hardware accelerator** > **TPU**.\n",
"Before you run this Colab notebook, make sure that your hardware accelerator is a TPU by checking your notebook settings: **Runtime** > **Change runtime type** > **Hardware accelerator** > **TPU v2**.\n",
"\n",
"Import some necessary libraries, including TensorFlow Datasets:"
]
Expand Down Expand Up @@ -128,7 +128,7 @@
},
"outputs": [],
"source": [
"resolver = tf.distribute.cluster_resolver.TPUClusterResolver(tpu='')\n",
"resolver = tf.distribute.cluster_resolver.TPUClusterResolver(tpu='local')\n",
"tf.config.experimental_connect_to_cluster(resolver)\n",
"# This is the TPU initialization code that has to be at the beginning.\n",
"tf.tpu.experimental.initialize_tpu_system(resolver)\n",
Expand Down Expand Up @@ -588,7 +588,6 @@
"metadata": {
"accelerator": "TPU",
"colab": {
"collapsed_sections": [],
"name": "tpu.ipynb",
"toc_visible": true
},
Expand Down

0 comments on commit 10eef0f

Please sign in to comment.