Answers for "odule 'tensorflow._api.v2.train' has no attribute 'GradientDescentOptimizer'"

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

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

Use version for the TensorFlow 2.x:

tf.optimizers.SGD (learning_rate=0.001, name='SGD')
Posted by: Guest on May-08-2020

Code answers related to "odule 'tensorflow._api.v2.train' has no attribute 'GradientDescentOptimizer'"

Python Answers by Framework

Browse Popular Code Answers by Language