Closed jiayaozhang closed 2 years ago
Hence import tensorflow.compat.v1 as tf tf.disable_v2_behavior() we can solve all the compatibility problem .
import tensorflow.compat.v1 as tf tf.disable_v2_behavior()
Since if we change here, we can change the import tensorflow as tf from tf2 to tf1
import tensorflow as tf
Hence
import tensorflow.compat.v1 as tf tf.disable_v2_behavior()
we can solve all the compatibility problem .Since if we change here, we can change the
import tensorflow as tf
from tf2 to tf1