fixed correct module on hpc save

This commit is contained in:
William Falcon
2019-07-24 18:20:56 -04:00
parent 8f0d9af168
commit a0e2b5ee54
+1
View File
@@ -307,6 +307,7 @@ def run_gpu_model_test(trainer_options, model, hparams, on_gpu=True):
if trainer.use_ddp:
trainer.model = pretrained_model
trainer.optimizers = pretrained_model.configure_optimizers()
# test HPC loading / saving
trainer.hpc_save(save_dir, exp)