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

Getting Syntax error and deprecated TF function #5

Open
fishandchipsing opened this issue May 5, 2017 · 1 comment
Open

Getting Syntax error and deprecated TF function #5

fishandchipsing opened this issue May 5, 2017 · 1 comment

Comments

@fishandchipsing
Copy link

fishandchipsing commented May 5, 2017

Hi Dmitry,
thanks for putting this together, this is exactly what I was looking for an experiment!
I am definitely a beginner in this, but I was trying to run your example and I get a Syntax error on the Optimise kernel and in the Output in the print as now you have to add parenthesis.

File "<ipython-input-16-9eb962c6044b>", line 50
    print 'Final loss:', loss.eval()
                      ^
SyntaxError: invalid syntax

I also figured out that tf.initialize_all_variables() is now deprecated and so changed it to tf.global_variables_initializer()

Then it all works well!
Thanks!

@fishandchipsing fishandchipsing changed the title Getting Syntax error at the Optmise stage Getting Syntax error and deprecated TF function May 5, 2017
@DmitryUlyanov
Copy link
Owner

Hi, thank you for reporting. A PR will be very helpful!

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

2 participants