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
ef93a254
Unverified
Commit
ef93a254
authored
Dec 05, 2020
by
Machel Reid
Committed by
GitHub
Dec 05, 2020
Browse files
Fix typo for `modeling_bert` import resulting in ImportError (#8931)
Self-explanatory ;) - Hope it helps!
parent
8dfc8c72
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/roberta/convert_roberta_original_pytorch_checkpoint_to_pytorch.py
...convert_roberta_original_pytorch_checkpoint_to_pytorch.py
+1
-1
No files found.
src/transformers/models/roberta/convert_roberta_original_pytorch_checkpoint_to_pytorch.py
View file @
ef93a254
...
...
@@ -24,7 +24,7 @@ from fairseq.models.roberta import RobertaModel as FairseqRobertaModel
from
fairseq.modules
import
TransformerSentenceEncoderLayer
from
packaging
import
version
from
transformers.models.bertmodeling_bert
import
(
from
transformers.models.bert
.
modeling_bert
import
(
BertIntermediate
,
BertLayer
,
BertOutput
,
...
...
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