SummaryWriter报错,改为tf summary FileWriter

不推荐使用 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++标准模板库从入门到精通 

 

 

2.跟老菜鸟学C++

3. 跟老菜鸟学python

4. 在VC2015里学会使用tinyxml库

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协议

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




再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow

猜你喜欢

转载自www.cnblogs.com/skiwnchh/p/10346966.html