简体   繁体   English

Keras Tensorflow 警告

[英]Keras Tensorflow warning

Can someone help me fix the following warning?有人可以帮我解决以下警告吗?

I have looked to the backend.py but cant seem to work out what the problem is, and the solution?我查看了 backend.py 但似乎无法解决问题所在,以及解决方案?

WARNING:tensorflow:From /Users/temp/Desktop/python_stuff/env/lib/python3.7/site-packages/tensorflow/python/keras/backend.py:4149: add_dispatch_support..wrapper (from tensorflow.python.ops.array_ops) is deprecated and will be removed in a future version. WARNING:tensorflow:From /Users/temp/Desktop/python_stuff/env/lib/python3.7/site-packages/tensorflow/python/keras/backend.py:4149: add_dispatch_support..wrapper (from tensorflow.python.ops. array_ops) 已弃用,将在未来版本中删除。 Instructions for updating: Use tf.where in 2.0, which has the same broadcast rule as np.where更新说明:2.0中使用tf.where,广播规则与np.where相同

I also have the following warning, but saw another question on stack, didn't understand it fully so I'll add to this question if anyone knows how to fix it...我也有以下警告,但在堆栈上看到另一个问题,没有完全理解,所以如果有人知道如何解决它,我会添加到这个问题......

tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA tensorflow/core/platform/cpu_feature_guard.cc:142] 您的 CPU 支持此 TensorFlow 二进制文件未编译使用的指令:AVX2 FMA

I have used pip to install everything and virtual env for my development Thank you.我已经使用 pip 为我的开发安装了所有东西和虚拟环境谢谢。

I will quote my answer from this thread :我将从这个线程中引用我的答案:

tensorflow is notorious for not being backward compatible and worse yet there are warnings like this now for a long time. tensorflow 因不向后兼容而臭名昭著,更糟糕的是,现在很长一段时间都有这样的警告。

See here: https://github.com/tensorflow/tensorflow/issues/25996见这里: https://github.com/tensorflow/tensorflow/issues/25996

So your best bet is just ignore those warnings and, if you wish to be proactive, then contribute with a fix.因此,您最好的选择就是忽略这些警告,如果您希望积极主动,请提供修复。

Your other queston has also been answered here and you may safely ignore such warning too, especially if you use GPU:您的其他问题也已在此处得到解答,您也可以放心地忽略此类警告,特别是如果您使用 GPU:

Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2 您的 CPU 支持此 TensorFlow 二进制文件未编译使用的指令:AVX AVX2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM