Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Commit

Permalink
Merge pull request #272 from MannyKayy/patch-1
Browse files Browse the repository at this point in the history
ChainerV2 calls trigger outside of snapshot object
  • Loading branch information
Hakuyume authored Jun 13, 2017
2 parents 78be7c1 + 1ccaa7e commit aad4f55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/segnet/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ def transform(in_data):
file_name='loss.png'))

trainer.extend(extensions.snapshot_object(
model.predictor, filename='model_iteration-{.updater.iteration}',
trigger=end_trigger))
model.predictor, filename='model_iteration-{.updater.iteration}'),
trigger=end_trigger)
trainer.extend(extensions.PrintReport(
['epoch', 'iteration', 'elapsed_time', 'lr',
'main/loss', 'validation/main/loss']),
Expand Down

0 comments on commit aad4f55

Please sign in to comment.