Skip to content

Commit 62b74d8

Browse files
committed
bugfix
1 parent 82e4f6a commit 62b74d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddlenlp/data/data_collator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ def __call__(self, features, return_tensors=None):
402402
else:
403403
feature["labels"] = np.concatenate([remainder, feature["labels"]]).astype(np.int64)
404404
if use_attn_mask_startend_row_indices is not None:
405-
if self.max_label_length is not None:
405+
if self.max_length is not None:
406406
max_length = self.max_length
407407
else:
408408
max_length = max(len(l) for l in use_attn_mask_startend_row_indices)

0 commit comments

Comments
 (0)