Semantic-Shapes
Semantic-Shapes copied to clipboard
Add compatibility code for tensorflow 2.0
Colab and many people have moved to Tensorflow 2.0 environments, so I have added some compatibility code to run on TF2. I have tested on Colab, tensorflow 2.3
The changes are quite simple, and they follow Google guidance: Change all: import tensorflow as tf To: import tensorflow.compat.v1 as tf tf.disable_v2_behavior()