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
fairscale
Commits
9a173bf2
You need to sign in or sign up before continuing.
Commit
9a173bf2
authored
Dec 15, 2023
by
George Tamer
Committed by
Mengchi Zhang
Feb 02, 2024
Browse files
Assign self.norm_type to input norm_type
parent
164cc0f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
fairscale/nn/model_parallel/layers.py
fairscale/nn/model_parallel/layers.py
+1
-1
No files found.
fairscale/nn/model_parallel/layers.py
View file @
9a173bf2
...
@@ -178,7 +178,7 @@ class ParallelEmbedding(torch.nn.Module):
...
@@ -178,7 +178,7 @@ class ParallelEmbedding(torch.nn.Module):
self
.
embedding_dim
=
embedding_dim
self
.
embedding_dim
=
embedding_dim
self
.
padding_idx
=
padding_idx
self
.
padding_idx
=
padding_idx
self
.
max_norm
=
max_norm
self
.
max_norm
=
max_norm
self
.
norm_type
=
scale_grad_by_freq
self
.
norm_type
=
norm_type
self
.
scale_grad_by_freq
=
scale_grad_by_freq
self
.
scale_grad_by_freq
=
scale_grad_by_freq
self
.
sparse
=
sparse
self
.
sparse
=
sparse
self
.
_weight
=
None
self
.
_weight
=
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