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
b6e73188
Commit
b6e73188
authored
Apr 15, 2020
by
Mohammad
Browse files
addressed jareds comments
parent
99410264
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
megatron/fp16/loss_scaler.py
megatron/fp16/loss_scaler.py
+4
-0
No files found.
megatron/fp16/loss_scaler.py
View file @
b6e73188
...
@@ -14,6 +14,10 @@
...
@@ -14,6 +14,10 @@
# limitations under the License.
# limitations under the License.
import
torch
import
torch
from
apex.multi_tensor_apply
import
multi_tensor_applier
import
amp_C
from
megatron
import
mpu
from
megatron
import
mpu
# item() is a recent addition, so this helps with backward compatibility.
# item() is a recent addition, so this helps with backward compatibility.
...
...
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