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

第一章 起步 简介-py代码即将失效 #174

Open
peterpeng2016 opened this issue Feb 11, 2017 · 1 comment
Open

第一章 起步 简介-py代码即将失效 #174

peterpeng2016 opened this issue Feb 11, 2017 · 1 comment

Comments

@peterpeng2016
Copy link

peterpeng2016 commented Feb 11, 2017

章节:第一章 起步 简介
页码:10
修改内容:Python 程序

# 初始化变量
init = tf.initialize_all_variables()

修改为:

# 初始化变量
init = tf.global_variables_initializer()

因为:
WARNING:tensorflow:From :1 in .: initialize_all_variables (from tensorflow.python.ops.variables) is deprecated and will be removed after 2017-03-02.
Instructions for updating:
Use tf.global_variables_initializer instead.

@peterpeng2016 peterpeng2016 changed the title 前言-py代码即将失效 第一章 起步 简介-py代码即将失效 Feb 11, 2017
@enduringstack
Copy link

还有tf.sub 现在应该是tf.subtract; tf.mul现在应该是tf.multiply

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