【Python报错】Keras运行神经网络时,报数据出错: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)])

问题截图:【Python报错】Keras运行神经网络时,报数据出错:Passing (type, 1) or '1type' as a synonym of type is deprecated
解决办法与原因:
原因:numpy版本过高
解决办法:降至1.16.0

自己写代码过程中遇到的问题,做个笔记,不喜勿喷,转载请注明出处
——zee