【发布时间】:2019-07-09 17:09:29
【问题描述】:
我正在使用 tensorflow 版本 2.0.0-beta1。打电话时
tf.estimator.inputs.pandas_input_fn
它给了我一个错误。
module 'tensorflow_estimator.python.estimator.api._v2.estimator' has no attribute 'inputs'
为了确定我尝试过的问题
tf.estimator.inputs
这给了我以下错误
module 'tensorflow_estimator.python.estimator.api._v2.estimator' has no attribute 'inputs'
我尝试在本地机器和 Google Colab 上重新安装 tensorflow,但这似乎不起作用。与之前版本的 tensorflow 相比,新版本的 tensorflow 中此功能是否有任何变化,即(tf 版本 1.x)
【问题讨论】:
-
该接口似乎已从 TensorFlow 2.x 中移除(参见
tf.estimator)。你仍然可以通过tf.compat.v1.estimator.inputs访问它,但我想你应该使用tf.data代替(如果不是tf.keras模型)。
标签: python tensorflow tensorflow2.0