darts icon indicating copy to clipboard operation
darts copied to clipboard

Improve saving/loading of torch models

Open hrzn opened this issue 4 years ago • 0 comments

Currently save_model() saves a complete pickle of self (using torch.save()), and in addition it also saves a Pytorch Lightning checkpoint. This is because the torch-save does not save correctly the Trainer object of PTL. But as a result we are saving two files and saving parameters twice. We can probably improve this.

hrzn avatar Apr 05 '22 09:04 hrzn