使用TensorFlow时报错

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_quint8 = np.dtype([("quint8", np.uint8, 1)])的错误

报错原因:numpy1-17-0版本过高,使用numpy-1.16-0版本即可

解决方法:重新安装numpy-1.16-0

解决方法:

命令提示符中

 pip install numpy==1.16.0 

或者直接在集成开发工具如Pycharm中直接

[深度学习]解决python调用TensorFlow时出现FutureWarning: Passing (type, 1) or '1type' as a synonym of type is dep...

 

 [深度学习]解决python调用TensorFlow时出现FutureWarning: Passing (type, 1) or '1type' as a synonym of type is dep...

 

相关文章:

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