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
fbe8464b
"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "63841c559b789abb72565bba6f69e0b3260e54f5"
Unverified
Commit
fbe8464b
authored
Sep 19, 2022
by
S.Kishore
Committed by
GitHub
Sep 19, 2022
Browse files
Added type hints for TFConvBertModel (#19088)
parent
22264f93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
src/transformers/models/convbert/modeling_tf_convbert.py
src/transformers/models/convbert/modeling_tf_convbert.py
+11
-11
No files found.
src/transformers/models/convbert/modeling_tf_convbert.py
View file @
fbe8464b
...
...
@@ -744,17 +744,17 @@ class TFConvBertModel(TFConvBertPreTrainedModel):
)
def
call
(
self
,
input_ids
=
None
,
attention_mask
=
None
,
token_type_ids
=
None
,
position_ids
=
None
,
head_mask
=
None
,
inputs_embeds
=
None
,
output_attentions
=
None
,
output_hidden_states
=
None
,
return_dict
=
None
,
training
=
False
,
):
input_ids
:
Optional
[
TFModelInputType
]
=
None
,
attention_mask
:
Optional
[
Union
[
np
.
array
,
tf
.
Tensor
]]
=
None
,
token_type_ids
:
Optional
[
Union
[
np
.
array
,
tf
.
Tensor
]]
=
None
,
position_ids
:
Optional
[
Union
[
np
.
array
,
tf
.
Tensor
]]
=
None
,
head_mask
:
Optional
[
Union
[
np
.
array
,
tf
.
Tensor
]]
=
None
,
inputs_embeds
:
Optional
[
tf
.
Tensor
]
=
None
,
output_attentions
:
Optional
[
bool
]
=
None
,
output_hidden_states
:
Optional
[
bool
]
=
None
,
return_dict
:
Optional
[
bool
]
=
None
,
training
:
bool
=
False
,
)
->
Union
[
TFBaseModelOutput
,
Tuple
[
tf
.
Tensor
]]
:
outputs
=
self
.
convbert
(
input_ids
=
input_ids
,
attention_mask
=
attention_mask
,
...
...
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