Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
554bb86f
Commit
554bb86f
authored
Apr 02, 2018
by
Akshay Agrawal
Browse files
Fix eager gpu cell
parent
d640ab9c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
samples/outreach/demos/eager_execution.ipynb
samples/outreach/demos/eager_execution.ipynb
+2
-1
No files found.
samples/outreach/demos/eager_execution.ipynb
View file @
554bb86f
...
@@ -284,7 +284,8 @@
...
@@ -284,7 +284,8 @@
"source": [
"source": [
"if tf.test.is_gpu_available() > 0:\n",
"if tf.test.is_gpu_available() > 0:\n",
" with tf.device(tf.test.gpu_device_name()):\n",
" with tf.device(tf.test.gpu_device_name()):\n",
" print(tf.matmul(A, A))"
" B = tf.constant([[2.0, 0.0], [0.0, 3.0]])\n",
" print(tf.matmul(B, B))"
],
],
"execution_count": 0,
"execution_count": 0,
"outputs": []
"outputs": []
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment