5

我已经给出了模式,但它显示错误,在 tensorflow1.6 中运行它 BATCH_QUEUE_MAX = 100

self._data_path = data_path
self._vocab = vocab
self._hps = hps
self._single_pass = single_pass

# Initialize a queue of Batches waiting to be used, and a queue of Examples waiting to be batched
self._batch_queue = Queue.Queue(self.BATCH_QUEUE_MAX)
self._example_queue = Queue.Queue(self.BATCH_QUEUE_MAX * self._hps.batch_size);

这段代码突然不能运行了。因为tensorflow变成了1.6版本?

在此处输入图像描述

4

1 回答 1

5

这些标志的 API 发生了变化。基本上,您必须在每个实例之后编写 .value ,例如 self._hps.batch_size.value

于 2018-03-16T15:37:50.037 回答