Skip to content

Commit 88d51d2

Browse files
committed
Add comment
1 parent 51e8a0c commit 88d51d2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_ops.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,6 +1268,10 @@ def test_encode_to_tensor_long_output(self):
12681268
torch.testing.assert_close(self.decode(encoded_tensor), samples)
12691269

12701270
def test_contiguity(self):
1271+
# Ensure that 2 waveforms with the same values are encoded in the same
1272+
# way, regardless of their memory layout. Here we encode 2 equal
1273+
# waveforms, one is row-aligned while the other is column-aligned.
1274+
12711275
num_samples = 10_000 # per channel
12721276
contiguous_samples = torch.rand(2, num_samples).contiguous()
12731277
assert contiguous_samples.stride() == (num_samples, 1)

0 commit comments

Comments
 (0)