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
7a2e1320
Unverified
Commit
7a2e1320
authored
Jan 30, 2023
by
Yichao 'Peak' Ji
Committed by
GitHub
Jan 30, 2023
Browse files
Remove duplicate declarations in dummy inputs for TFLongformer (#21352)
Remove duplicate declarations
parent
96addecf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
src/transformers/models/longformer/modeling_tf_longformer.py
src/transformers/models/longformer/modeling_tf_longformer.py
+0
-3
No files found.
src/transformers/models/longformer/modeling_tf_longformer.py
View file @
7a2e1320
...
...
@@ -1888,9 +1888,6 @@ class TFLongformerPreTrainedModel(TFPreTrainedModel):
global_attention_mask
=
tf
.
convert_to_tensor
(
[[
0
,
0
,
0
,
0
,
1
],
[
0
,
0
,
1
,
0
,
0
],
[
0
,
0
,
0
,
0
,
1
]],
dtype
=
tf
.
int32
)
global_attention_mask
=
tf
.
convert_to_tensor
(
[[
0
,
0
,
0
,
0
,
1
],
[
0
,
0
,
1
,
0
,
0
],
[
0
,
0
,
0
,
0
,
1
]],
dtype
=
tf
.
int32
)
return
{
"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