Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
apex
Commits
a151575c
Commit
a151575c
authored
May 28, 2019
by
Michael Carilli
Browse files
Fix for
https://github.com/NVIDIA/apex/issues/332
parent
14e34f7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
apex/amp/_process_optimizer.py
apex/amp/_process_optimizer.py
+5
-0
No files found.
apex/amp/_process_optimizer.py
View file @
a151575c
...
@@ -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'
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment