Answers for "module 'tensorflow._api.v2.train' has no attribute 'Saver'"

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
0

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

change
tf.train.Optimizer
to
tf.compat.v1.train.Optimizer
Posted by: Guest on December-08-2020

Code answers related to "module 'tensorflow._api.v2.train' has no attribute 'Saver'"

Python Answers by Framework

Browse Popular Code Answers by Language