mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Remove duplicate declarations in dummy inputs for TFLongformer (#21352)
Remove duplicate declarations
This commit is contained in:
parent
96addecff8
commit
7a2e13204f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user