TensorFlow1.14.0でのFutureWarning (警告)対策

投稿日 2019年9月21日 >> 更新日 2020年8月2日

今回はTensorFlow1.14.0で起こるFutureWarning(警告)についてお話します。

「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_resource = np.dtype([("resource", np.ubyte, 1)])」

これは現在自分が使用しているnumpy1.17.2のバージョンが合っていないということなので、一度アンインストールし、numpy1.16.4を再度入れ直し解消しました。


$ pip3 uninstall numpy==1.17.2

# バージョンを指定する
$ pip3 install numpy==1.16.4

以上となります。

ご覧いただきありがとうございました。

一覧へ戻る