Commit a151575c authored by Michael Carilli's avatar Michael Carilli
Browse files
parent 14e34f7f
...@@ -332,6 +332,11 @@ def _process_optimizer(optimizer, properties): ...@@ -332,6 +332,11 @@ def _process_optimizer(optimizer, properties):
def new_add_param_group(self, new_group): def new_add_param_group(self, new_group):
stash = self._amp_stash stash = self._amp_stash
if not stash.lazy_init_called:
self._lazy_init_maybe_master_weights()
stash.lazy_init_called = True
assert isinstance(new_group, dict), "param group must be a dict" assert isinstance(new_group, dict), "param group must be a dict"
new_params = new_group['params'] new_params = new_group['params']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment