FutureWarning: Passing (type, 1) or ‘1type‘ as a synonym of type is deprecated; in a future version

Full error message:

C:\Users\Lihjia\Anaconda3\envs\tf114gpu\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:541: 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)])

Solution:

Click on the page link in the error message to go to the dtypes.py file. Change _np_qint8 = np.dtype([("qint8", np.int8,1)]) to

_np_qint8 = e.g. dtype ([("qint8", e.g. int8, (1,))])

I use tensorflow 1.14.0, and there are 12 changes in two files here. As shown below:

Related Posts