运行keras出现 FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy,
原则来说,没啥影响,还是能运行,但是看着难受
解决办法:
点击蓝色的链接:
进入
根据每个报错的蓝色链接,你会发现都是这种:
把里面的1 改成(1,)
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
_np_qint32 = np.dtype([("qint32", np.int32, 1)])np_resource = np.dtype([("resource", np.ubyte, 1)])
然后退出,运行原文件
完美解决~
参考解决python调用TensorFlow时出现FutureWarning: Passing (type, 1) or ‘1type’
as a synonym of type is
deprecate