mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-02 03:01:07 +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(
|
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
|
[[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 {
|
return {
|
||||||
"input_ids": input_ids,
|
"input_ids": input_ids,
|
||||||
"attention_mask": attention_mask,
|
"attention_mask": attention_mask,
|
||||||
|
Loading…
Reference in New Issue
Block a user