美文网首页
import tensorflow报错

import tensorflow报错

作者: 大魂 | 来源:发表于2019-08-20 13:28 被阅读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)])

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

方法一
在报错的.py文件中把报错代码改成 _np_qint8 = np.dtype([(“qint8”,np.int8,(1,)])

方法二
numpy版本过高,删除现版本,重新安装低版本。

pip uninstall numpy
pip install numpy==1.13

相关文章

网友评论

      本文标题:import tensorflow报错

      本文链接:https://www.haomeiwen.com/subject/buxpsctx.html