最近在导入tensorflow_gpu 1.14.0版本(cuda9.2、cudnn7.5)时出了点问题,具体截图如下:

Python3 tensorflow出现FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated;

根据报错信息,显示: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对“1type”的使用是有差异的,因此可能该tensorflow版本中对应的numpy版本可能偏高了,因此降低numpy版本即可。

通过  pip list查看可知numpy版本为1.17.3,如下截图:

Python3 tensorflow出现FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated;

卸载当前numpy版本安装1.16.0版本,如下截图:

Python3 tensorflow出现FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated;

 

相关文章:

  • 2021-07-08
  • 2021-07-21
  • 2021-09-28
  • 2021-09-12
猜你喜欢
  • 2022-12-23
  • 2021-11-08
  • 2022-01-06
  • 2022-01-10
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案