【发布时间】:2018-04-25 08:46:48
【问题描述】:
在 tensorflow 中使用估计器并使用 tf.estimator.inputs.numpy_input_function() 传递输入时,为特征和标签的输入创建的张量的名称是什么。
如果我打印出图表中所有占位符的名称,我会得到以下信息:
name: "enqueue_input/Placeholder"
name: "enqueue_input/Placeholder_1"
name: "enqueue_input/Placeholder_2"
但是,这些张量的形状没有指定,所以我不知道哪个是哪个或为什么有 3 个,而不是只有一个特征和一个标签张量。
我知道这里也有人问过这个问题:TensorFlow: What are the input nodes for tf.Estimator models
但是没有人回答。
【问题讨论】:
-
我没有使用numpy_input_function,我使用了tf.data.Dataset。但它有效。看看我的回答是否有帮助:stackoverflow.com/questions/48335699/…
标签: python tensorflow machine-learning deep-learning