解決python調用TensorFlow時出現FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecate

百度了許多,很多說是numpy的版本不對,換了numpy的版本就行了,但是我換了好幾個版本都沒用,仍然報錯,最後發現,可以在pycharm中使用Import tensorflow,然後將點進出現的警告,進入dtype.py,修改對應行的代碼,把np.dtype([("quint8", np.uint8, 1)])修改爲np.dtype([("quint8", np.uint8, (1,))])就完
相關文章
相關標籤/搜索