模块 Tensorflow 没有属性 KMeans
Module Tensorflow has no attribute KMeans
我正在使用 Tensorflow 计算 DELF 特征。
我正在使用张量流模型中的下一个示例:
github。
所以这里有一行:
kmeans = tf.estimator.experimental.KMeans(...)
但是我没有这样的型号:
AttributeError: module
'tensorflow_estimator.python.estimator.api.estimator.experimental' has
no attribute 'KMeans'
我的配置:
张量板 1.13.1 py37hf484d3e_0
张量流 1.13.1 gpu_py37hc158e3b_0
tensorflow-base 1.13.1 gpu_py37h8d69cac_0
张量流估计器 1.13.0 py_0
张量流 GPU 1.13.1 h0d30ee6_0
看起来这个模型被替换了,但我找不到位置。
从 tensorflow 使用 KMeans 的正确语法是
tf.contrib.factorization.KMeansClustering()
有关参数和更多信息,请阅读 this。
我正在使用 Tensorflow 计算 DELF 特征。 我正在使用张量流模型中的下一个示例: github。
所以这里有一行:
kmeans = tf.estimator.experimental.KMeans(...)
但是我没有这样的型号:
AttributeError: module 'tensorflow_estimator.python.estimator.api.estimator.experimental' has no attribute 'KMeans'
我的配置:
张量板 1.13.1 py37hf484d3e_0
张量流 1.13.1 gpu_py37hc158e3b_0
tensorflow-base 1.13.1 gpu_py37h8d69cac_0
张量流估计器 1.13.0 py_0
张量流 GPU 1.13.1 h0d30ee6_0
看起来这个模型被替换了,但我找不到位置。
从 tensorflow 使用 KMeans 的正确语法是
tf.contrib.factorization.KMeansClustering()
有关参数和更多信息,请阅读 this。