Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Fix quantized_conv flaky test #16074

Merged
merged 1 commit into from
Sep 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/python/quantization/test_quantization.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def check_quantized_conv(data_shape, kernel, num_filter, pad, stride, no_bias, q
qoutput, min_range, max_range = conv_exe_int8.forward()

if no_bias:
assert_almost_equal(output.asnumpy(), qoutput.asnumpy())
assert_almost_equal(output.asnumpy(), qoutput.asnumpy(), atol = 1)
else:
# with adding bias, accuracy loss should not be greater than one
diff = mx.nd.abs(output - qoutput.astype(output.dtype))
Expand Down