WARNING:XXX is deprecated and will be removed...
来源:互联网 发布:空间数据质量控制 编辑:程序博客网 时间:2024/06/05 00:59
运行程序的时候报了一堆警告,都是关于XXX is deprecated and will be removed……
下面是其中的一个WARNING:
WARNING:tensorflow:From /XXX/XXX/XXX/XXX.py:158 in evaluate.: init (from tensorflow.python.training.summary_io) is deprecated and will be removed after 2016-11-30.
Instructions for updating:
Please switch to tf.summary.FileWriter. The interface and behavior is the same; this is just a rename.
解决办法:
其实方法很简单,定位到对应的.py文件代码位置,把Please switch to后面那个函数名字替换上去就好了。
比如上面的那个WARNING 就是把原来代码中的tf.train.SummaryWriter 转换为 tf.summary.FileWriter
大家可以去参考一下这篇文章,很实用Tensorflow | 函数名字的更新
0 0
- WARNING:XXX is deprecated and will be removed...
- [Warning] '--default-character-set' is deprecated and will be removed in a future release
- Deprecated: mysql_connect(): The mysqlextension is deprecated and will be removed in the future: use
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: u
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 【解决方案】Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: us
- phpmyadmin,解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in t
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- Annotation原理
- 第四轮GDOI比赛模拟の总结
- 系列:iOS开发-网络请求
- AD
- Vuex 模块化实现待办事项的状态管理
- WARNING:XXX is deprecated and will be removed...
- 面试 | 前端技术面
- Java 公历转农历,然后农历减一年(或者几天或者任意天),再把这个日期转成公历
- mysql_2_兄弟连笔记
- 网络笔记
- java 与 php
- nginx反向代理网站(网易、百度之类的)
- Jquery show方法不起作用解决方案
- Java基础阶段总结