Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
179ab098
Unverified
Commit
179ab098
authored
Apr 23, 2024
by
Russell Klopfer
Committed by
GitHub
Apr 23, 2024
Browse files
remove redundant logging from longformer (#30365)
parent
c651ea98
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/longformer/modeling_longformer.py
src/transformers/models/longformer/modeling_longformer.py
+1
-1
No files found.
src/transformers/models/longformer/modeling_longformer.py
View file @
179ab098
...
...
@@ -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
if
padding_len
>
0
:
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
}
"
)
if
input_ids
is
not
None
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment