Skip to content

Commit

Permalink
Fix TF backend string
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-andersson committed Jun 6, 2023
1 parent b34e5a4 commit 135c4ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebooks/around_deepsensor_in_80_lines.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
" if torch.cuda.is_available():\n",
" torch.set_default_device(\"cuda\")\n",
" B.set_global_device(\"cuda:0\")\n",
"elif deepsensor.backend.str == \"tensorflow\":\n",
"elif deepsensor.backend.str == \"tf\":\n",
" import tensorflow as tf\n",
" if tf.test.is_gpu_available():\n",
" tf.config.set_visible_devices(tf.config.list_physical_devices('GPU')[0], 'GPU')\n",
Expand Down

0 comments on commit 135c4ae

Please sign in to comment.