TensorFlow, “'module' object has no attribute 'placeholder'”
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've been trying to use tensorflow for two days now installing and reinstalling it over and over again in python2.7 and 3.4. No matter what I do, I get this error message when trying to use tensorflow.placeholder() It's very boilerplate code: tf_in = tf.placeholder("float", [None, A]) # Features No matter what I do I always get the trace back: Traceback (most recent call last): File "/home/willim/PycharmProjects/tensorflow/tensorflow.py", line 2, in <module> import tensorflow as tf File "/home/willim/PycharmProjects/tensorflow/tensorflow.py"