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
a63bd367
Unverified
Commit
a63bd367
authored
Feb 21, 2022
by
Simon Sardorf
Committed by
GitHub
Feb 21, 2022
Browse files
Remove input and target reset after preprocessing (#15741)
Remove input and target reset after preprocessing
parent
2c2a31ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
examples/pytorch/summarization/run_summarization.py
examples/pytorch/summarization/run_summarization.py
+0
-2
No files found.
examples/pytorch/summarization/run_summarization.py
View file @
a63bd367
...
...
@@ -483,8 +483,6 @@ def main():
inputs
.
append
(
examples
[
text_column
][
i
])
targets
.
append
(
examples
[
summary_column
][
i
])
inputs
=
examples
[
text_column
]
targets
=
examples
[
summary_column
]
inputs
=
[
prefix
+
inp
for
inp
in
inputs
]
model_inputs
=
tokenizer
(
inputs
,
max_length
=
data_args
.
max_source_length
,
padding
=
padding
,
truncation
=
True
)
...
...
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