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
Fairseq
Commits
93fec886
Commit
93fec886
authored
Jul 25, 2018
by
Myle Ott
Browse files
Fix comment
parent
5aa4a627
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
fairseq/models/lstm.py
fairseq/models/lstm.py
+1
-1
No files found.
fairseq/models/lstm.py
View file @
93fec886
...
@@ -458,7 +458,7 @@ def LSTMCell(input_size, hidden_size, **kwargs):
...
@@ -458,7 +458,7 @@ def LSTMCell(input_size, hidden_size, **kwargs):
def
Linear
(
in_features
,
out_features
,
bias
=
True
,
dropout
=
0
):
def
Linear
(
in_features
,
out_features
,
bias
=
True
,
dropout
=
0
):
"""
Weight-normalized
Linear layer (input: N x T x C)"""
"""Linear layer (input: N x T x C)"""
m
=
nn
.
Linear
(
in_features
,
out_features
,
bias
=
bias
)
m
=
nn
.
Linear
(
in_features
,
out_features
,
bias
=
bias
)
m
.
weight
.
data
.
uniform_
(
-
0.1
,
0.1
)
m
.
weight
.
data
.
uniform_
(
-
0.1
,
0.1
)
if
bias
:
if
bias
:
...
...
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