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
441811ec
"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "13186d7152c3795878265d4699423847d6299866"
Unverified
Commit
441811ec
authored
Nov 16, 2022
by
Zachary Mueller
Committed by
GitHub
Nov 16, 2022
Browse files
Fix summarization script (#20286)
parent
5e012f8e
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_no_trainer.py
...les/pytorch/summarization/run_summarization_no_trainer.py
+0
-2
No files found.
examples/pytorch/summarization/run_summarization_no_trainer.py
View file @
441811ec
...
@@ -702,8 +702,6 @@ def main():
...
@@ -702,8 +702,6 @@ def main():
decoded_labels
=
tokenizer
.
batch_decode
(
labels
,
skip_special_tokens
=
True
)
decoded_labels
=
tokenizer
.
batch_decode
(
labels
,
skip_special_tokens
=
True
)
decoded_preds
,
decoded_labels
=
postprocess_text
(
decoded_preds
,
decoded_labels
)
decoded_preds
,
decoded_labels
=
postprocess_text
(
decoded_preds
,
decoded_labels
)
decoded_preds
,
decoded_labels
=
accelerator
.
gather_for_metrics
(
decoded_preds
,
decoded_labels
)
metric
.
add_batch
(
metric
.
add_batch
(
predictions
=
decoded_preds
,
predictions
=
decoded_preds
,
references
=
decoded_labels
,
references
=
decoded_labels
,
...
...
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