【发布时间】:2017-08-10 17:52:48
【问题描述】:
如果tf.estimator.Estimator也被使用,应该如何初始化tf.contrib.data.Iterator?
其中一个问题是输入图 (tf 图处理输入的部分) 应该在 intput_fn() 中定义 - 因为 tf.estimator 创建单独的图。
这一要求使得访问迭代器init ops 并传递它们to tf.estimator 变得困难(传递操作可以在以钩子形式调用train/evaluate/predict 时完成)。
【问题讨论】:
标签: tensorflow tensorflow-datasets tensorflow-estimator