"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "805db1fe13b3155d61ac5571439f5d619e47022f"
Unverified Commit 7a2e1320 authored by Yichao 'Peak' Ji's avatar Yichao 'Peak' Ji Committed by GitHub
Browse files

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

Remove duplicate declarations
parent 96addecf
...@@ -1888,9 +1888,6 @@ class TFLongformerPreTrainedModel(TFPreTrainedModel): ...@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment