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
Uni-Core
Commits
83602797
Commit
83602797
authored
Aug 24, 2022
by
Guolin Ke
Browse files
typo
parent
cf503760
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
unicore/modules/layer_norm.py
unicore/modules/layer_norm.py
+1
-1
No files found.
unicore/modules/layer_norm.py
View file @
83602797
...
...
@@ -62,7 +62,7 @@ class LayerNorm(torch.nn.Module):
return
F
.
layer_norm
(
input
,
self
.
normalized_shape
,
self
.
weight
,
self
.
bias
,
self
.
eps
)
def
fused_layer_norm
(
input
):
if
input
.
is_cuda
()
:
if
input
.
is_cuda
:
return
FusedLayerNormFastFunction
.
apply
(
input
,
self
.
weight
,
self
.
bias
,
self
.
normalized_shape
,
self
.
eps
)
else
:
...
...
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