Skip to content

Commit

Permalink
remove len
Browse files Browse the repository at this point in the history
  • Loading branch information
billvsme committed Nov 27, 2024
1 parent 93477d0 commit 5aa3fc4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def _create_batch_data(self, batch_raw_data):

passages.extend(tmp_passages)

if teacher_scores and len(teacher_scores) > 0 and len(passages) > 0:
if teacher_scores and passages:
assert len(teacher_scores) == len(passages)

# add icl pairs
Expand Down

0 comments on commit 5aa3fc4

Please sign in to comment.