"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "01a14ebd8df7163db59b37623d1ac2fe0dbf5a3b"
Unverified Commit 179ab098 authored by Russell Klopfer's avatar Russell Klopfer Committed by GitHub
Browse files

remove redundant logging from longformer (#30365)

parent c651ea98
...@@ -1593,7 +1593,7 @@ class LongformerModel(LongformerPreTrainedModel): ...@@ -1593,7 +1593,7 @@ class LongformerModel(LongformerPreTrainedModel):
# this path should be recorded in the ONNX export, it is fine with padding_len == 0 as well # this path should be recorded in the ONNX export, it is fine with padding_len == 0 as well
if padding_len > 0: if padding_len > 0:
logger.warning_once( logger.warning_once(
f"Input ids are automatically padded from {seq_len} to {seq_len + padding_len} to be a multiple of " f"Input ids are automatically padded to be a multiple of "
f"`config.attention_window`: {attention_window}" f"`config.attention_window`: {attention_window}"
) )
if input_ids is not None: if input_ids is not None:
......
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