MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / _trigger

Method _trigger

examples/GAN/CycleGAN.py:194–200  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

192 self.val_ds.reset_state()
193
194 def _trigger(self):
195 idx = 0
196 for iA, iB in self.val_ds:
197 vizA, vizB = self.pred(iA, iB)
198 self.trainer.monitors.put_image('testA-{}'.format(idx), vizA)
199 self.trainer.monitors.put_image('testB-{}'.format(idx), vizB)
200 idx += 1
201
202
203if __name__ == '__main__':

Callers

nothing calls this directly

Calls 2

put_imageMethod · 0.80
formatMethod · 0.80

Tested by

no test coverage detected