Fix
This commit is contained in:
parent
3a9e3a9db3
commit
cc0d9f7216
|
@ -129,7 +129,7 @@ class BaseModel():
|
|||
network.load_state_dict(load_net_clean, strict=strict)
|
||||
|
||||
|
||||
def consolidate_state(self, state):
|
||||
def consolidate_state(self):
|
||||
for o in self.optimizers:
|
||||
if isinstance(o, ZeroRedundancyOptimizer):
|
||||
state['optimizers'].append(o.consolidate_state_dict(to=0))
|
||||
|
|
Loading…
Reference in New Issue
Block a user