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
8f0af7cd
Commit
8f0af7cd
authored
Jul 24, 2020
by
Boris Fomitchev
Browse files
Fixed APEX test
Signed-off-by:
Boris Fomitchev
<
bfomitchev@nvidia.com
>
parent
b04eb0a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
megatron/model/transformer.py
megatron/model/transformer.py
+1
-1
No files found.
megatron/model/transformer.py
View file @
8f0af7cd
...
...
@@ -21,7 +21,7 @@ import torch
try
:
from
apex.normalization.fused_layer_norm
import
FusedLayerNorm
as
LayerNorm
# Try to use FusedLayerNorm from Apex - this will trigger an error.
_
=
Fused
LayerNorm
(
8
,
eps
=
1e-5
)
_
=
LayerNorm
(
8
,
eps
=
1e-5
)
except
Exception
as
e
:
print
(
'WARNING: APEX is not available, using torch.nn.LayerNorm instead of apex.normalization.FusedLayerNorm!'
)
...
...
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