我已经尝试使用张量流两天了,现在在 python2.7和3.4中一遍又一遍地安装和重新安装它。无论我做什么,在尝试使用 tensorflow. placeholder ()时都会得到这个错误消息
这是非常模板化的代码:
tf_in = tf.placeholder("float", [None, A]) # Features
无论我做什么,我总能找回痕迹:
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", line 53, in <module>
tf_in = tf.placeholder("float", [None, A]) # Features
AttributeError: 'module' object has no attribute 'placeholder'
有人知道我该怎么补救吗?