neural-style-audio-tf icon indicating copy to clipboard operation
neural-style-audio-tf copied to clipboard

Getting Syntax error and deprecated TF function

Open fishandchipsing opened this issue 8 years ago • 1 comments
trafficstars

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 avatar May 05 '17 06:05 fishandchipsing

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

DmitryUlyanov avatar Jul 27 '17 07:07 DmitryUlyanov