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
5935fe2f
Commit
5935fe2f
authored
Apr 02, 2018
by
Myle Ott
Browse files
Fix flake8
parent
f68a4435
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
4 deletions
+0
-4
fairseq/models/transformer.py
fairseq/models/transformer.py
+0
-1
fairseq/modules/sinusoidal_positional_embedding.py
fairseq/modules/sinusoidal_positional_embedding.py
+0
-3
No files found.
fairseq/models/transformer.py
View file @
5935fe2f
...
...
@@ -7,7 +7,6 @@
import
math
import
torch
from
torch.autograd
import
Variable
import
torch.nn
as
nn
import
torch.nn.functional
as
F
...
...
fairseq/modules/sinusoidal_positional_embedding.py
View file @
5935fe2f
...
...
@@ -26,9 +26,6 @@ class SinusoidalPositionalEmbedding(nn.Module):
self
.
embedding_dim
=
embedding_dim
self
.
padding_idx
=
padding_idx
self
.
left_pad
=
left_pad
self
.
register_buffer
(
'range_buf'
,
None
)
self
.
_cache
=
{}
self
.
register_buffer
(
'weights'
,
SinusoidalPositionalEmbedding
.
get_embedding
(
...
...
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