Remove duplicate declarations in dummy inputs for TFLongformer (#21352)

Remove duplicate declarations
This commit is contained in:
Yichao 'Peak' Ji 2023-01-30 23:03:19 +08:00 committed by GitHub
parent 96addecff8
commit 7a2e13204f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,