victoresque / pytorch-template

PyTorch deep learning projects made easy.
MIT License
4.75k stars 1.09k forks source link

Use "with open" to ensure config file saving in 'base_trainer'. #19

Closed borgesa closed 6 years ago

borgesa commented 6 years ago

Hi,

Small change in "base/base_trainer.py" to make writing to json file safer (see e.g. here.