We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
(Tensorflow) C:\Users\uxb\Desktop\ChatBotCourse-master\ChatBotCourse-master\chat botv5>python demo.py train File "demo.py", line 189 print 'step=', step, 'loss=', loss_ret, 'learning_rate=', learning_rate.eval () ^ SyntaxError: invalid syntax
(Tensorflow) C:\Users\uxb\Desktop\ChatBotCourse-master\ChatBotCourse-master\chat botv5>python demo.py predict File "demo.py", line 189 print 'step=', step, 'loss=', loss_ret, 'learning_rate=', learning_rate.eval () ^ SyntaxError: invalid syntax
The text was updated successfully, but these errors were encountered:
这个是python2的语法。 所有的print适配成python3的语法即可print(xxx)
Sorry, something went wrong.
还有xrange需要替换成range, unicode类型需要替换成str,经替换后在python3上可以运行了。
好,谢谢
No branches or pull requests
(Tensorflow) C:\Users\uxb\Desktop\ChatBotCourse-master\ChatBotCourse-master\chat
botv5>python demo.py train
File "demo.py", line 189
print 'step=', step, 'loss=', loss_ret, 'learning_rate=', learning_rate.eval
()
^
SyntaxError: invalid syntax
(Tensorflow) C:\Users\uxb\Desktop\ChatBotCourse-master\ChatBotCourse-master\chat
botv5>python demo.py predict
File "demo.py", line 189
print 'step=', step, 'loss=', loss_ret, 'learning_rate=', learning_rate.eval
()
^
SyntaxError: invalid syntax
The text was updated successfully, but these errors were encountered: