This happened when running the 2-colab-what-does-my-neural-network-think.ipynb notebook in colabs.
When tensorflow 2.0 is installed in step 2 (!pip install tensorflow==2.0.0), it seems like you have to restart the runtime and run the code again. That is not entirely clear in the notebook but you can see a notice at the end of the installation.
Hi,
This happened when running the 2-colab-what-does-my-neural-network-think.ipynb notebook in colabs.
When tensorflow 2.0 is installed in step 2 (
!pip install tensorflow==2.0.0
), it seems like you have to restart the runtime and run the code again. That is not entirely clear in the notebook but you can see a notice at the end of the installation.If you do not restart, the process_image give and error
OperatorNotAllowedInGraphError
(See https://stackoverflow.com/questions/57888872/how-to-fix-operatornotallowedingrapherror-error-in-tensorflow-2-0).Not sure but maybe the code or instructions need an update to make this work from scratch. Hope this helps.
Seems like there is an issue reported in tensorflow 2.0, see https://github.com/tensorflow/tensorflow/issues/32546.
The issue mentions also a gist which reproduces the exact same error, see https://colab.research.google.com/gist/oanush/0983d6584c1c687c0456fff142db4ad4/32546.ipynb