rename ckpt suffix to np

pull/831/head
Hui Zhang 3 years ago
parent 0f3e5a3872
commit a997b5a61c

@ -101,7 +101,7 @@ class Snapshot(extension.Extension):
iteration = trainer.updater.state.iteration
epoch = trainer.updater.state.epoch
num = epoch if self.trigger[1] == 'epoch' else iteration
path = self.checkpoint_dir / f"{num}.pdz"
path = self.checkpoint_dir / f"{num}.np"
# add the new one
trainer.updater.save(path)

Loading…
Cancel
Save