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

进入dtype.py
修改对应行的代码
把np.dtype([(“quint8”, np.uint8, 1)])修改为np.dtype([(“quint8”, np.uint8, (1,))])
就完美解决了

posted @ 2019-11-13 16:00  旅人_Eric  阅读(426)  评论(0编辑  收藏  举报