From 62ab558923d21df4d3d2a05ccf26b767047281fc Mon Sep 17 00:00:00 2001 From: Frederik Bode Date: Mon, 3 May 2021 13:43:30 +0200 Subject: [PATCH] fix the mlm longformer example by changing [MASK] to (#11559) --- src/transformers/models/longformer/modeling_tf_longformer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/transformers/models/longformer/modeling_tf_longformer.py b/src/transformers/models/longformer/modeling_tf_longformer.py index bb193fbf6389f3..dfe620ffb6944a 100644 --- a/src/transformers/models/longformer/modeling_tf_longformer.py +++ b/src/transformers/models/longformer/modeling_tf_longformer.py @@ -2082,6 +2082,7 @@ def get_prefix_bias_name(self): checkpoint=_CHECKPOINT_FOR_DOC, output_type=TFLongformerMaskedLMOutput, config_class=_CONFIG_FOR_DOC, + mask="", ) def call( self,