tensorflow 警告 Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version o

警告内容如下

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)])

报错原因:当前的 numpy 版本与 tensorflow 版本不兼容,这里 numpy 使用了最新版 1.17.2

解决办法:使用 numpy 1.17 以下版本

发布了244 篇原创文章 · 获赞 109 · 访问量 44万+

猜你喜欢

转载自blog.csdn.net/wsjzzcbq/article/details/101029739
今日推荐