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
c46d39f3
"tests/bert/test_modeling_bert.py" did not exist on "e4679cddced7d746427066a78e8079fb40e51528"
Unverified
Commit
c46d39f3
authored
Jul 18, 2022
by
John Giorgi
Committed by
GitHub
Jul 18, 2022
Browse files
Fix check for falsey inputs in run_summarization (#18155)
parent
ccc08978
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/pytorch/summarization/run_summarization.py
examples/pytorch/summarization/run_summarization.py
+1
-1
No files found.
examples/pytorch/summarization/run_summarization.py
View file @
c46d39f3
...
...
@@ -515,7 +515,7 @@ def main():
inputs
,
targets
=
[],
[]
for
i
in
range
(
len
(
examples
[
text_column
])):
if
examples
[
text_column
][
i
]
is
not
None
and
examples
[
summary_column
][
i
]
is
not
None
:
if
examples
[
text_column
][
i
]
and
examples
[
summary_column
][
i
]:
inputs
.
append
(
examples
[
text_column
][
i
])
targets
.
append
(
examples
[
summary_column
][
i
])
...
...
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