(self)
| 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 |