Skip to content

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

Open
@peterpeng2016

Description

@peterpeng2016

章节:第一章 起步 简介
页码: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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions