Skip to content

Commit 14b7122

Browse files
authored
Merge pull request #1884 from anthony-wss/develop
fix batch_to_right
2 parents c18f620 + a6278dc commit 14b7122

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

speechbrain/utils/data_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def batch_pad_right(tensors: list, mode="constant", value=0):
418418
return tensors[0].unsqueeze(0), torch.tensor([1.0])
419419

420420
if not (
421-
any(
421+
all(
422422
[tensors[i].ndim == tensors[0].ndim for i in range(1, len(tensors))]
423423
)
424424
):

0 commit comments

Comments
 (0)