tensorflow_core._api.v2.train' has no attribute 'GradientDescentOptimizer' code example
Example: tensorflow_core._api.v2.train' has no attribute 'GradientDescentOptimizer'
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()