Skip to content

Commit 9711cbc

Browse files
arjungtensorflow-copybara
authored andcommitted
Automated rollback of commit 5220044
PiperOrigin-RevId: 306690106
1 parent 5220044 commit 9711cbc

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

g3doc/tutorials/graph_keras_lstm_imdb.ipynb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,7 @@
182182
"print(\"Version: \", tf.__version__)\n",
183183
"print(\"Eager mode: \", tf.executing_eagerly())\n",
184184
"print(\"Hub version: \", hub.__version__)\n",
185-
"print(\n",
186-
" \"GPU is\",\n",
187-
" \"available\" if tf.config.list_physical_devices(\"GPU\") else \"NOT AVAILABLE\")"
185+
"print(\"GPU is\", \"available\" if tf.test.is_gpu_available() else \"NOT AVAILABLE\")"
188186
]
189187
},
190188
{

g3doc/tutorials/graph_keras_mlp_cora.ipynb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,7 @@
174174
"\n",
175175
"print(\"Version: \", tf.__version__)\n",
176176
"print(\"Eager mode: \", tf.executing_eagerly())\n",
177-
"print(\n",
178-
" \"GPU is\",\n",
179-
" \"available\" if tf.config.list_physical_devices(\"GPU\") else \"NOT AVAILABLE\")"
177+
"print(\"GPU is\", \"available\" if tf.test.is_gpu_available() else \"NOT AVAILABLE\")"
180178
]
181179
},
182180
{

0 commit comments

Comments
 (0)