SummaryWriter报错,改为tf.summary.FileWriter

来源:互联网 发布:淘宝手机端套餐链接 编辑:程序博客网 时间:2024/05/29 18:33
不推荐使用SummaryWriter (来自tensorflow.Python.training.summary_io),将在2016-11-30之后删除。 
更新说明: 

请切换到tf.summary.FileWriter接口和行为是相同的; 这只是一个重命名。

比如原来代码:

with tf.Session() as sess:writer = tf.train.SummaryWriter("output", sess.graph)print(sess.run(h))writer.close()
需要修改为:

with tf.Session() as sess:writer = tf.summary.FileWriter("output", sess.graph)print(sess.run(h))writer.close()
通过这样修改,就可以运行了。



1. C++标准模板库从入门到精通 

http://edu.csdn.net/course/detail/3324

2.跟老菜鸟学C++

http://edu.csdn.net/course/detail/2901

3. 跟老菜鸟学python

http://edu.csdn.net/course/detail/2592

4. 在VC2015里学会使用tinyxml库

http://edu.csdn.net/course/detail/2590

5. 在Windows下SVN的版本管理与实战 

 http://edu.csdn.net/course/detail/2579

6.Visual Studio 2015开发C++程序的基本使用 

http://edu.csdn.net/course/detail/2570

7.在VC2015里使用protobuf协议

http://edu.csdn.net/course/detail/2582

8.在VC2015里学会使用MySQL数据库

http://edu.csdn.net/course/detail/2672



0 0
原创粉丝点击