Semantic-Shapes icon indicating copy to clipboard operation
Semantic-Shapes copied to clipboard

Add compatibility code for tensorflow 2.0

Open bobvo23 opened this issue 4 years ago • 0 comments

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()

bobvo23 avatar Oct 26 '20 04:10 bobvo23