web-dev-qa-db-ja.com

データ型のtensorflow警告

Python 3.7.4 [64-bit]]にtensorflowとnumpyをインストールしました。インポートしようとすると、次の警告が表示されます:

/home/user/.local/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:516:FutureWarning:型の同義語として(type、1)または '1type'を渡すことは非推奨です。 numpyの将来のバージョンでは、(type、(1、))/ '(1、)type'と解釈されます。 _np_qint8 = np.dtype([( "qint8"、np.int8、1)])/home/user/.local/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:517: FutureWarning:型の同義語として(type、1)または '1type'を渡すことは非推奨です。 numpyの将来のバージョンでは、(type、(1、))/ '(1、)type'と解釈されます。 _np_quint8 = np.dtype([( "quint8"、np.uint8、1)])/home/user/.local/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:518: FutureWarning:型の同義語として(type、1)または '1type'を渡すことは非推奨です。 numpyの将来のバージョンでは、(type、(1、))/ '(1、)type'と解釈されます。 _np_qint16 = np.dtype([( "qint16"、np.int16、1)])/home/user/.local/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:519: FutureWarning:型の同義語として(type、1)または '1type'を渡すことは非推奨です。 numpyの将来のバージョンでは、(type、(1、))/ '(1、)type'と解釈されます。 _np_quint16 = np.dtype([( "quint16"、np.uint16、1)])/home/user/.local/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:520: FutureWarning:型の同義語として(type、1)または '1type'を渡すことは非推奨です。 numpyの将来のバージョンでは、(type、(1、))/ '(1、)type'と解釈されます。 _np_qint32 = np.dtype([( "qint32"、np.int32、1)])/home/user/.local/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:525: FutureWarning:型の同義語として(type、1)または '1type'を渡すことは非推奨です。 numpyの将来のバージョンでは、(type、(1、))/ '(1、)type'と解釈されます。 np_resource = np.dtype([( "resource"、np.ubyte、1)])

/home/user/.local/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541:FutureWarning:Passing(type、1)or '1type' as a synonym as type is deprecated; numpyの将来のバージョンでは、(type、(1、))/ '(1、)type'と解釈されます。 _np_qint8 = np.dtype([( "qint8"、np.int8、1)])/home/user/.local/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: FutureWarning:型の同義語として(type、1)または '1type'を渡すことは非推奨です。 numpyの将来のバージョンでは、(type、(1、))/ '(1、)type'と解釈されます。 _np_quint8 = np.dtype([( "quint8"、np.uint8、1)])/home/user/.local/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: FutureWarning:型の同義語として(type、1)または '1type'を渡すことは非推奨です。 numpyの将来のバージョンでは、(type、(1、))/ '(1、)type'と解釈されます。 _np_qint16 = np.dtype([( "qint16"、np.int16、1)])/home/user/.local/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: FutureWarning:型の同義語として(type、1)または '1type'を渡すことは非推奨です。 numpyの将来のバージョンでは、(type、(1、))/ '(1、)type'と解釈されます。 _np_quint16 = np.dtype([( "quint16"、np.uint16、1)])/home/user/.local/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: FutureWarning:型の同義語として(type、1)または '1type'を渡すことは非推奨です。 numpyの将来のバージョンでは、(type、(1、))/ '(1、)type'と解釈されます。 _np_qint32 = np.dtype([( "qint32"、np.int32、1)])/home/user/.local/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: FutureWarning:型の同義語として(type、1)または '1type'を渡すことは非推奨です。 numpyの将来のバージョンでは、(type、(1、))/ '(1、)type'と解釈されます。 np_resource = np.dtype([( "resource"、np.ubyte、1)])

私は次のバージョンを持っています-numpy- 1.17.0 tensorflow- 1.14.0

Tensorflowのさまざまなデータ型の警告を解決するにはどうすればよいですか?

ありがとう!

6
Arun

今は無視することにしました。

import warnings
warnings.filterwarnings('ignore')

根本的な原因は解決しませんが。

1
user3752281