TensorFlow-Examples icon indicating copy to clipboard operation
TensorFlow-Examples copied to clipboard

Seemmingly using the deprecated or inexestent tensorflow's attribute?

Open MutaLucem opened this issue 6 years ago • 2 comments

Hi, i strongly believe u have a good day now. so as ur tutorials' real fans, if this message bother ur good mood, i must say sorry. In brief,when i run the code below(route where is in "tf-v2/Recurrent Neural Network Example"), optimizer = tf.optimizers.Adam(learning_rate), and then emerged the error said

"module 'tensorflow' has no attribute 'optimizers' "

subsequently, i substituted the code for it which below, optimizer = tf.train.AdamOptimizer(learning_rate). then it succeed.

MutaLucem avatar Aug 15 '19 10:08 MutaLucem

Please make sure you are running TensorFlow 2.0: pip install tensorflow==2.0.0-beta1

aymericdamien avatar Aug 16 '19 06:08 aymericdamien

Thanks a lot, the matter was settled.

MutaLucem avatar Aug 20 '19 02:08 MutaLucem