Skip to content

Commit 745e53a

Browse files
Jeff SnyderYknZhu
authored andcommitted
Add explicit tensorflow version to deeplab_demo.ipynb (#7964)
Colab will soon update the default version of tensorflow to 2.1.0. In order for this notebook to continue to work, I'm adding a line magic that will ensure this notebook continues to use tensorflow 1.x and execute without errors.
1 parent cfc8306 commit 745e53a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

research/deeplab/deeplab_demo.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"import numpy as np\n",
6262
"from PIL import Image\n",
6363
"\n",
64+
"%tensorflow_version 1.x\n",
6465
"import tensorflow as tf"
6566
]
6667
},

0 commit comments

Comments
 (0)