Skip to content

Commit

Permalink
Removes a deprecation warning. Tested the updated .ipynb file.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 404370475
  • Loading branch information
tf-text-github-robot committed Oct 19, 2021
1 parent 1fb76ca commit 102913a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/bert_glue.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@
" tf.tpu.experimental.initialize_tpu_system(cluster_resolver)\n",
" strategy = tf.distribute.TPUStrategy(cluster_resolver)\n",
" print('Using TPU')\n",
"elif tf.test.is_gpu_available():\n",
"elif tf.config.list_physical_devices('GPU'):\n",
" strategy = tf.distribute.MirroredStrategy()\n",
" print('Using GPU')\n",
"else:\n",
Expand Down

0 comments on commit 102913a

Please sign in to comment.