报错:Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
生活随笔
收集整理的這篇文章主要介紹了
报错:Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.問題
寫了一個簡單的單層神經網絡跑mnist手寫數字集,結果每次fit都會出現dead kernel
?
很多dead kernel首先不要急著去網上搜dead kernel怎么解決,因為大家出現的原因并不相同,應該去notebook的bash終端查看報錯信息,大概如下:
看到一篇博客解釋這個問題解釋的比較好:
https://blog.csdn.net/qq_41185868/article/details/79127838#comments
根據報錯,首先了解一下什么是AVX:
?
大概意思是說AVX是一種擴展指令之類的,需要CPU和協議的配合,而我的Tensorflow不支持它。
?
2.解決方法
可能是由于mac版的tensorflow版本較低(相較于windows,還不能亂升級),那么怎么解決?
?
?
?
就可以了,我也想搞清楚這背后到底是什么問題,但是好像越看越復雜-。-,還是乖乖忽略警告跑代碼吧?
轉載于:https://www.cnblogs.com/RB26DETT/p/11543689.html
超強干貨來襲 云風專訪:近40年碼齡,通宵達旦的技術人生總結
以上是生活随笔為你收集整理的报错:Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 泛型应用
- 下一篇: pandas之loc iloc ix