MCPcopy Create free account
hub / github.com/tensorpack/tensorpack / _before_train

Method _before_train

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

Source from the content-addressed store, hash-verified

187 ['inputA', 'inputB'], ['A_recon/viz', 'B_recon/viz'])
188
189 def _before_train(self):
190 global args
191 self.val_ds = get_data(args.data, isTrain=False)
192 self.val_ds.reset_state()
193
194 def _trigger(self):
195 idx = 0

Callers

nothing calls this directly

Calls 2

get_dataFunction · 0.70
reset_stateMethod · 0.45

Tested by

no test coverage detected