Numpy数据类型对象报错:Future warning: _np_qint8 = np.dtype([("qint8", np.int8, 1)])

我使用的是Python3.5.2,使用python的pip安装的Numpy结果dtype.py有以下错误

Numpy数据类型对象报错:Future warning: _np_qint8 = np.dtype([(

错误信息打印: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)])

翻译:不推荐使用(type,1)或'1type'作为类型的同义词; 在未来的numpy版本中,它将被理解为(type,(1,))/'(1,)type'。 _np_qint8 = np.dtype([(“qint8”,np.int8,1)])
解决:改成 _np_qint8 = np.dtype([(“qint8”,np.int8,(1,)])

你可能感兴趣的:(AI)