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

深藏阁楼爱情的钟 2024-04-19 15:52 203阅读 0赞

警告内容如下

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 以下版本

发表评论

表情:
评论列表 (有 0 条评论,203人围观)

还没有评论,来说两句吧...

相关阅读