(self)
| 297 | class CounterReader(Reader): |
| 298 | """ Reader that produces increasing integers. """ |
| 299 | def __init__(self): |
| 300 | Reader.__init__(self, schema=Struct(('iter', np.int64))) |
| 301 | self.counter = None |
| 302 | self.should_stop = None |
| 303 | |
| 304 | def setup_ex(self, global_init_net, global_finish_net): |
| 305 | if self.counter is None: |