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

再次安装tensorflow进行项目的时候,出现了如下问题:
解决python调用TensorFlow时出现FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecate
这里tensorflow的版本为1.14.0

找到解决方法如下:
根据错误提示中的路径找到对应的文件及其行数,将np.dtype([(“qint8”,np.int8,1)])改为np.dtype([(“qint8”,np.int8,(1,))])
解决python调用TensorFlow时出现FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecate问题顺利解决!

问题参考链接在这里