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)])
只要按开第一个链接,直接修改里面的源代码就好了
把里面_np_qint8=np.dtype(["qint8",np.int8,1]) 类似的数据类型的定义,里面的 " ,1 " 去掉,然后重新运行一下就OK了
本文介绍了一种常见的NumPy警告-FutureWarning,并提供了解决方案。通过修改源代码中特定的数据类型定义,可以消除这个警告,确保代码在未来版本的NumPy中也能正常运行。

2770

被折叠的 条评论
为什么被折叠?



