+ 13

Error: AttributeError: module 'tensorflow' has no attribute 'placeholder'

Error: AttributeError: module 'tensorflow' has no attribute 'placeholder' What do I do?

19th Jul 2019, 2:18 PM
Zhenis Otarbay
Zhenis Otarbay - avatar
4 Respuestas
+ 6
TensorFlow Variables And Placeholders Tutorial With Example May be this helps: https://appdividend.com/2019/02/06/tensorflow-variables-and-placeholders-tutorial-with-example/
19th Jul 2019, 4:43 PM
Lothar
Lothar - avatar
+ 13
Simon Yu it was working on my desktop, so i am thinking that i have not properly installed tensorflow
21st Jul 2019, 4:52 AM
Zhenis Otarbay
Zhenis Otarbay - avatar
+ 1
did you try tf.placeholder () and set input as tf.float32 ?
21st Jul 2019, 4:18 AM
Simon Yu
+ 1
This error may come if you have installed TensorFlow 2.0 and want to run code that is not compatible with TensorFlow 2.0 https://botbark.com/2019/12/18/attributeerror-module-tensorflow-has-no-attribute-placeholder-tensorflow-2-0/
27th Dec 2019, 6:59 AM
BBark