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
c85547af
"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "19a63d8245f4ce95595a8be657eb669d6491cdf8"
Unverified
Commit
c85547af
authored
Mar 28, 2022
by
lewtun
Committed by
GitHub
Mar 28, 2022
Browse files
Remove kwargs argument from IBERT MLM forward pass (#16449)
parent
da936942
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
src/transformers/models/ibert/modeling_ibert.py
src/transformers/models/ibert/modeling_ibert.py
+0
-1
No files found.
src/transformers/models/ibert/modeling_ibert.py
View file @
c85547af
...
@@ -893,7 +893,6 @@ class IBertForMaskedLM(IBertPreTrainedModel):
...
@@ -893,7 +893,6 @@ class IBertForMaskedLM(IBertPreTrainedModel):
output_attentions
:
Optional
[
bool
]
=
None
,
output_attentions
:
Optional
[
bool
]
=
None
,
output_hidden_states
:
Optional
[
bool
]
=
None
,
output_hidden_states
:
Optional
[
bool
]
=
None
,
return_dict
:
Optional
[
bool
]
=
None
,
return_dict
:
Optional
[
bool
]
=
None
,
**
kwargs
,
)
->
Union
[
MaskedLMOutput
,
Tuple
[
torch
.
FloatTensor
]]:
)
->
Union
[
MaskedLMOutput
,
Tuple
[
torch
.
FloatTensor
]]:
r
"""
r
"""
labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*):
labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*):
...
...
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