Skip to content

Commit

Permalink
add assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
lostella committed Dec 4, 2024
1 parent 357cef4 commit 662415b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ def test_pad_and_stack(tensors: list):

ref = torch.concat(tensors).to(dtype=stacked_and_padded.dtype)

assert torch.sum(stacked_and_padded) == torch.sum(ref)
assert torch.nanmean(stacked_and_padded) == torch.nanmean(ref)

0 comments on commit 662415b

Please sign in to comment.