Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'tensorflow' has no attribute 'placeholder' #11

Open
ninki51 opened this issue Sep 3, 2017 · 4 comments
Open

Comments

@ninki51
Copy link

ninki51 commented Sep 3, 2017

——————————————————定义神经网络变量——————————————————
X=tf.placeholder(tf.float32, [None,time_step,input_size]) #每批次输入网络的tensor
Y=tf.placeholder(tf.float32, [None,time_step,output_size]) #每批次tensor对应的标签

运行到这里报错:
AttributeError: module 'tensorflow' has no attribute 'placeholder'

@ninki51
Copy link
Author

ninki51 commented Sep 3, 2017

我从网络采集了外汇数据,json格式是这样的
[[1.12071], [1.12065], [1.12067], [1.12068], [1.12066], [1.12066], [1.12066], [1.1207], [1.12066], [1.12068], [1.12079], [1.12076], [1.12073], [1.12068], [1.12075], [1.1208], [1.12089]]

@Michaelhuagang
Copy link

I have the same problem, which is so upset now.

@Michaelhuagang
Copy link

now i have a way to solve it:
is it possible uu installed using conda install?
That is not an officially supported way to install. I recommend you retry installing with pip install even after using conda to create the environment.
use pip reinstall tensorflow.

@Charles-Hu
Copy link

You can check the edition of tensorflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants