在分布式tensorflow中,我需要在一个worker上处理输入数据,并在另一个不同的会话上使用它们。 “make_initializable_iterator”有一个未记录的参数“shared_name”,但是如果不在每个会话上创建数据集,如何初始化迭代器呢。你知道吗
def make_initializable_iterator(self, shared_name=None):
"""Creates an `Iterator` for enumerating the elements of this dataset.
Note: The returned iterator will be in an uninitialized state,
and you must run the `iterator.initializer` operation before using it"""
更清楚的是,如果我定义了一个具有共享名称的迭代器,那么如何在另一个会话中使用这个迭代器。你知道吗
iter_init_op
可能就是您要搜索的内容:在会议期间:
相关问题 更多 >
编程相关推荐