警告内容如下
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 版本与 tensorflow 版本不兼容,这里 numpy 使用了最新版 1.17.2
解决办法:使用 numpy 1.17 以下版本