各位大神,在运行程序时报如下错误怎么回事?Using Ten
tensorflow吧
全部回复
仅看楼主
level 3
各位大神,在运行程序时报如下错误怎么回事?
Using TensorFlow backend.
Using TensorFlow backend.
Using TensorFlow backend.
WARNING: Logging before flag parsing goes to stderr.
W0725 07:05:57.962523 6280 deprecation_wrapper.py:119] From C:\Python\lib\site-packages\keras\backend\tensorflow_backend.py:174: The name tf.get_default_session is deprecated. Please use tf.compat.v1.get_default_session instead.
W0725 07:05:57.962523 6280 deprecation_wrapper.py:119] From C:\Python\lib\site-packages\keras\backend\tensorflow_backend.py:181: The name tf.ConfigProto is deprecated. Please use tf.compat.v1.ConfigProto instead.
W0725 07:05:57.962523 6280 deprecation_wrapper.py:119] From C:\Python\lib\site-packages\keras\backend\tensorflow_backend.py:186: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.
W0725 07:05:57.978123 6280 deprecation_wrapper.py:119] From C:\Python\lib\site-packages\keras\backend\tensorflow_backend.py:190: The name tf.global_variables is deprecated. Please use tf.compat.v1.global_variables instead.
W0725 07:05:57.978123 6280 deprecation_wrapper.py:119] From C:\Python\lib\site-packages\keras\backend\tensorflow_backend.py:74: The name tf.get_default_graph is deprecated. Please use tf.compat.v1.get_default_graph instead.
W0725 07:05:58.009323 6280 deprecation_wrapper.py:119] From C:\Python\lib\site-packages\keras\backend\tensorflow_backend.py:1834: The name tf.nn.fused_batch_norm is deprecated. Please use tf.compat.v1.nn.fused_batch_norm instead.
[ WARN:0] terminating async callback
W0725 07:06:02.243526 6280 deprecation_wrapper.py:119] From C:\Python\lib\site-packages\keras\backend\tensorflow_backend.py:2018: The name tf.image.resize_nearest_neighbor is deprecated. Please use tf.compat.v1.image.resize_nearest_neighbor instead.
W0725 07:06:06.446767 6280 deprecation.py:323] From C:\Python\lib\site-packages\tensorflow\python\ops\array_ops.py:1354: add_dispatch_support.<locals>.wrapper (from tensorflow.python.ops.array_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.wher
2019年07月25日 00点07分 1
level 1
请问解决了吗?
2019年07月27日 14点07分 2
level 1
您好,请问解决了吗?我也遇到同样的问题
2019年07月31日 12点07分 3
只是提示,没有什么问题
2019年08月07日 09点08分
请问你是怎么解决的啊
2019年12月01日 15点12分
level 1
这好像不是错误吧,是警告
2019年07月31日 16点07分 4
level 1
我也遇到了!
2019年08月12日 01点08分 5
level 1
实在不行就打忽略警告吧
import warningsdef fxn(): warnings.warn("deprecated", DeprecationWarning)with warnings.catch_warnings(): warnings.simplefilter("ignore") fxn()
2019年08月12日 01点08分 6
level 1
python版本太高了,你装的应该是3.7的吧。但keras目前只支持到3.6
2019年08月23日 02点08分 7
补充:由于python是3.7,你装的TensorFlow也是3.7的,keras作为TensorFlow的后端引擎却只支持到3.6,所以会有警告,多数情况下还会报错。所以解决办法是:安装一个python3.6版本的虚拟环境,报所有的包换成3.6版本的。
2019年08月23日 03点08分
3.6
2019年08月23日 09点08分
@怪我不能1V5咯 我3.6.9的也跳warnning了。。。烦
2019年10月24日 12点10分
level 1
新版本不提倡使用tf.Session(),把改成
with tf.compat.v1.Session() as sess:
这样就不会报警告了
2019年09月11日 07点09分 8
怎么改啊
2019年09月27日 03点09分
with tf.compat.v1.Session() as sess: print( sess.run(y))
2019年09月30日 01点09分
1