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
02d40e9f
Unverified
Commit
02d40e9f
authored
Apr 03, 2018
by
Mark Daoust
Committed by
GitHub
Apr 03, 2018
Browse files
Merge pull request #3843 from akshayka/gpu_fix
Fix eager demo's GPU cell
parents
a0e3604f
7bfa87ea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
samples/outreach/demos/eager_execution.ipynb
samples/outreach/demos/eager_execution.ipynb
+3
-2
No files found.
samples/outreach/demos/eager_execution.ipynb
View file @
02d40e9f
...
@@ -282,9 +282,10 @@
...
@@ -282,9 +282,10 @@
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
"if tf.test.is_gpu_available()
> 0
:\n",
"if tf.test.is_gpu_available():\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