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 runs a very simple script and throws more than ten warnings as above. Although the results are output normally, it is not good to look at the warnings. I checked it online because of the numpy version problem:

Just update the numpy version to 1.16.4.

Online reference links:

https://blog.csdn.net/weixin_42081389/article/details/98185411

https://github.com/tensorflow/tensorflow/issues/30427

https://github.com/tensorflow/tensorflow/issues/31249

Reprinted in: https://www.cnblogs.com/jerryqi/p/11477467.html

Related Posts