FutureWarning: Passing (type, 1) or ‘1type‘ as a synonym of type is deprecate

FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecate

解决方法:
在这里插入图片描述
换成

_np_qint8 = np.dtype([("qint8", np.int8, (1,))])
_np_quint8 = np.dtype([("quint8", np.uint8,  (1,))])
_np_qint16 = np.dtype([("qint16", np.int16,  (1,))])
_np_quint16 = np.dtype([("quint16", np.uint16,  (1,))])
_np_qint32 = np.dtype([("qint32", np.int32,  (1,))])

猜你喜欢

转载自blog.csdn.net/qestion_yz_10086/article/details/108139584
今日推荐