Skip to content

Commit

Permalink
Merge branch 'main' into workflow-cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottTodd authored Dec 3, 2024
2 parents 9c96fe9 + 544a2d8 commit bcafb2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sharktank/tests/types/quantizers_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ def testPerAxisRoundtrip(self):
torch.testing.assert_close(
ssq.scale, torch.tensor([0.2, 0.4, 0.8], dtype=torch.float32)
)
torch.testing.assert_close(ssq.reciprocal_scale, torch.tensor([5.0, 2.5, 1.25]))
torch.testing.assert_close(
ssq.reciprocal_scale, torch.tensor([5.0, 2.5, 1.25], dtype=torch.float32)
)
self.assertIs(ssq.dtype, torch.float16)

def testPerAxisQuantDequant(self):
Expand Down

0 comments on commit bcafb2c

Please sign in to comment.