MCPcopy Create free account
hub / github.com/NVlabs/SPADE / needs_saving

Method needs_saving

util/iter_counter.py:67–68  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

65 print('Saved current iteration count at %s.' % self.iter_record_path)
66
67 def needs_saving(self):
68 return (self.total_steps_so_far % self.opt.save_latest_freq) < self.opt.batchSize
69
70 def needs_printing(self):
71 return (self.total_steps_so_far % self.opt.print_freq) < self.opt.batchSize

Callers 1

train.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected