Skip to content

Commit

Permalink
Add explicit tensorflow version to 4_Neural_Style_Transfer_with_Eager…
Browse files Browse the repository at this point in the history
…_Execution.ipynb (tensorflow#7965)

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.
  • Loading branch information
Jeff Snyder authored and saberkun committed Jan 23, 2020
1 parent c813d85 commit fa43bb1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@
},
"cell_type": "code",
"source": [
"%tensorflow_version 1.x\n",
"import tensorflow as tf\n",
"\n",
"from tensorflow.python.keras.preprocessing import image as kp_image\n",
Expand Down

0 comments on commit fa43bb1

Please sign in to comment.