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
chenpangpang
transformers
Commits
9d7d9b3a
Commit
9d7d9b3a
authored
May 29, 2020
by
Victor SANH
Browse files
weird import
parent
2a3c88a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
examples/movement-pruning/emmental/modeling_bert_masked.py
examples/movement-pruning/emmental/modeling_bert_masked.py
+2
-1
No files found.
examples/movement-pruning/emmental/modeling_bert_masked.py
View file @
9d7d9b3a
...
@@ -26,7 +26,8 @@ import torch
...
@@ -26,7 +26,8 @@ import torch
from
torch
import
nn
from
torch
import
nn
from
torch.nn
import
CrossEntropyLoss
,
MSELoss
from
torch.nn
import
CrossEntropyLoss
,
MSELoss
from
emmental
import
MaskedBertConfig
,
MaskedLinear
from
emmental
import
MaskedBertConfig
from
emmental.modules
import
MaskedLinear
from
transformers.file_utils
import
add_start_docstrings
,
add_start_docstrings_to_callable
from
transformers.file_utils
import
add_start_docstrings
,
add_start_docstrings_to_callable
from
transformers.modeling_bert
import
(
from
transformers.modeling_bert
import
(
ACT2FN
,
ACT2FN
,
...
...
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