abisee / cnn-dailymail

Code to obtain the CNN / Daily Mail dataset (non-anonymized) for summarization
MIT License
635 stars 306 forks source link

run_summarization.py shows TypeError: unsupported operand type(s) for *: 'int' and 'Flag' #36

Open yamonc opened 3 years ago

yamonc commented 3 years ago

it actually shows in batcher.py.

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)
print(self.BATCH_QUEUE_MAX, self._hps.batch_size)
self._example_queue = Queue.Queue(self.BATCH_QUEUE_MAX * self._hps.batch_size)

line 236. it reports int type can not operand with Flag,but i cannot modify.