使用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 deprecate

 

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