Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
fix unit test (#1785)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cjkkkk authored and chicm-ms committed Nov 26, 2019
1 parent aa51e79 commit 1398540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sdk/pynni/tests/test_compressor.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def test_torch_QAT_quantizer(self):
weight = torch.tensor([[-1, 2], [3, 5]]).float()
quantize_weight = quantizer.quantize_weight(weight, config_list[0], model.conv2)
assert math.isclose(model.conv2.scale, 6 / 255, abs_tol=eps)
assert model.conv2.zero_point == 42
assert model.conv2.zero_point in (42, 43)

# test ema
x = torch.tensor([[-0.2, 0], [0.1, 0.2]])
Expand Down

0 comments on commit 1398540

Please sign in to comment.