Write as follows at the beginning of the line
import tensorflow.compat.v1 as tf tf.disable_v2_behavior()
Recommended Posts