Tensorflow 1.13.1 KMeansClustering估算器警告消息

时间:2020-05-25 06:04:08

标签: python numpy tensorflow

使用Tensorflow 1.13.1我的代码

import tensorflow as tf

from tensorflow.contrib.factorization import KMeansClustering

警告消息

/Users/georgeng/opt/anaconda3/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:526:FutureWarning:将(type,1)或'1type'传递为类型已弃用;在numpy的未来版本中,它将被理解为(type,(1,))/'(1,)type'。 _np_qint8 = np.dtype([(“ qint8”,np.int8,1)]) /Users/georgeng/opt/anaconda3/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:527:FutureWarning:不赞成将(type,1)或'1type'作为类型的同义词传递;在numpy的未来版本中,它将被理解为(type,(1,))/'(1,)type'。 _np_quint8 = np.dtype([(“ quint8”,np.uint8,1)]) /Users/georgeng/opt/anaconda3/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:528:FutureWarning:不建议将(type,1)或'1type'作为类型的同义词传递;在numpy的未来版本中,它将被理解为(type,(1,))/'(1,)type'。 _np_qint16 = np.dtype([(“ qint16”,np.int16,1)]) /Users/georgeng/opt/anaconda3/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:529:FutureWarning:不赞成将(type,1)或'1type'作为类型的同义词传递;在numpy的未来版本中,它将被理解为(type,(1,))/'(1,)type'。 _np_quint16 = np.dtype([(“” quint16“,np.uint16,1)]) /Users/georgeng/opt/anaconda3/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:530:FutureWarning:不建议使用(type,1)或'1type'作为type的同义词;在numpy的未来版本中,它将被理解为(type,(1,))/'(1,)type'。 _np_qint32 = np.dtype([(“ qint32”,np.int32,1)]) /Users/georgeng/opt/anaconda3/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:535:FutureWarning:不赞成将(type,1)或'1type'作为类型的同义词传递;在numpy的未来版本中,它将被理解为(type,(1,))/'(1,)type'。 np_resource = np.dtype([(“ resource”,np.ubyte,1)]

这里发生了什么以及如何避免使用此警告消息

import warnings
warnings.simplefilter('ignore')

非常感谢您的帮助

0 个答案:

没有答案