FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated;
/Users/jerryqi/PycharmProjects/DeepLearning/venv/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:516: 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)])
tensorflow运行一个很简单的脚本, 抛出了如上十多条警告, 虽然结果正常输出了, 但是看着警告也不爽, 网上查了一下是因为numpy的版本问题:
把numpy的版本更新到1.16.4就好了.
网上的参考链接:
https://blog.csdn.net/weixin_42081389/article/details/98185411
原创文章,转载请注明来源