Skip to content

Commit 1d6f8e2

Browse files
authored
[float8] fix typo in bitwise_identical unit test (#918)
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags:
1 parent 0bdde92 commit 1d6f8e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/float8/test_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
is_cuda_8_9 = torch.cuda.is_available() and torch.cuda.get_device_capability() >= (8, 9)
5454

5555
def bitwise_identical(a: Float8Tensor, b: Float8Tensor) -> bool:
56-
assert torch.all(a._data == b._data).item(), "scales are not identical"
56+
assert torch.all(a._scale == b._scale).item(), "scales are not identical"
5757
assert torch.all(a._data == b._data).item(), "data is not identical"
5858
return True
5959

0 commit comments

Comments
 (0)