fixed hpc save, load. cleaned apu
This commit is contained in:
parent
64de447545
commit
348223a702
|
@ -79,7 +79,7 @@ class TrainerIO(object):
|
|||
|
||||
# add the state_dict from the model
|
||||
model = self.__get_model()
|
||||
checkpoint['state_dict'] = model.get_state_dict
|
||||
checkpoint['state_dict'] = model.state_dict()
|
||||
|
||||
# give the model a chance to add a few things
|
||||
model.on_save_checkpoint(checkpoint)
|
||||
|
|
Loading…
Reference in New Issue