FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated;


/Users/jerryqi/PycharmProjects/DeepLearning/venv/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])

tensorflow運行一個很簡單的腳本, 拋出了如上十多條警告, 雖然結果正常輸出了, 但是看着警告也不爽, 網上查了一下是因為numpy的版本問題:

把numpy的版本更新到1.16.4就好了.

網上的參考鏈接:

https://blog.csdn.net/weixin_42081389/article/details/98185411

https://github.com/tensorflow/tensorflow/issues/30427

https://github.com/tensorflow/tensorflow/issues/31249


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM