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
Megatron-LM
Commits
a4489ffb
"vscode:/vscode.git/clone" did not exist on "b93d5ee2ddcf2a9876b5871cbb958016e263336b"
Commit
a4489ffb
authored
Apr 15, 2020
by
Mohammad
Browse files
addressed jareds comment
parent
b6e73188
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
megatron/fp16/fp16util.py
megatron/fp16/fp16util.py
+0
-1
No files found.
megatron/fp16/fp16util.py
View file @
a4489ffb
...
@@ -169,7 +169,6 @@ def model_grads_to_master_grads(model_params, master_params, flat_master=False):
...
@@ -169,7 +169,6 @@ def model_grads_to_master_grads(model_params, master_params, flat_master=False):
if
model
.
grad
is
not
None
:
if
model
.
grad
is
not
None
:
if
master
.
grad
is
None
:
if
master
.
grad
is
None
:
master
.
grad
=
Variable
(
master
.
data
.
new
(
*
master
.
data
.
size
()))
master
.
grad
=
Variable
(
master
.
data
.
new
(
*
master
.
data
.
size
()))
master
.
grad
.
data
.
copy_
(
model
.
grad
.
data
)
else
:
else
:
master
.
grad
=
None
master
.
grad
=
None
model_grads
=
[
p
.
grad
for
p
in
model_params
if
p
.
grad
is
not
None
]
model_grads
=
[
p
.
grad
for
p
in
model_params
if
p
.
grad
is
not
None
]
...
...
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