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版本了?
最佳答案
这些标志的 API 发生了变化。基本上,您必须在每个实例之后编写 .value,例如
self._hps.batch_size.value
关于python - tensorflow 代码TypeError : unsupported operand type(s) for *: 'int' and 'Flag' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49312591/