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

print sess.run(cost_total) #3

Open
buzai opened this issue Feb 25, 2017 · 4 comments
Open

print sess.run(cost_total) #3

buzai opened this issue Feb 25, 2017 · 4 comments

Comments

@buzai
Copy link

buzai commented Feb 25, 2017

ubuntu16
tf 1.0
is this api it changed?

@buzai
Copy link
Author

buzai commented Feb 25, 2017

.py
File "main.py", line 137
print sess.run(cost_total)
^
SyntaxError: invalid syntax

@buzai
Copy link
Author

buzai commented Feb 25, 2017

tf 1.0 cpu and gpu
python3

@tofuwen
Copy link

tofuwen commented Mar 2, 2017

@buzai Since you are using python3, use
print(sess.run(cost_total))

@ckmarkoh
Copy link
Owner

This script is for python 2.7.
In python 3, you should replace the "print x" by "print(x)" .

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