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
1486fb81
Unverified
Commit
1486fb81
authored
Jul 28, 2021
by
Buddhi Chathuranga Senarathna
Committed by
GitHub
Jul 28, 2021
Browse files
Fix typo in the example of MobileBertForPreTraining (#12919)
parent
f3d0866e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/mobilebert/modeling_mobilebert.py
src/transformers/models/mobilebert/modeling_mobilebert.py
+1
-1
No files found.
src/transformers/models/mobilebert/modeling_mobilebert.py
View file @
1486fb81
...
...
@@ -964,7 +964,7 @@ class MobileBertForPreTraining(MobileBertPreTrainedModel):
>>> input_ids = torch.tensor(tokenizer.encode("Hello, my dog is cute", add_special_tokens=True)).unsqueeze(0) # Batch size 1
>>> outputs = model(input_ids)
>>> prediction_logits = outp
t
us.prediction_logits
>>> prediction_logits = outpu
t
s.prediction_logits
>>> seq_relationship_logits = outputs.seq_relationship_logits
"""
...
...
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