Answers for "AttributeError: module 'tensorflow._api.v2.train' has no attribute 'GradientDescentOptimizer' site:stackoverflow.com"

2

AttributeError: module 'tensorflow._api.v2.train' has no attribute 'GradientDescentOptimizer' site:stackoverflow.com

use tf.optimizer.SGD() for tensorflow2.0
Posted by: Guest on June-06-2020
1

tensorflow_core._api.v2.train' has no attribute 'GradientDescentOptimizer'

import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
Posted by: Guest on March-12-2020

Code answers related to "AttributeError: module 'tensorflow._api.v2.train' has no attribute 'GradientDescentOptimizer' site:stackoverflow.com"

Python Answers by Framework

Browse Popular Code Answers by Language