From a1e27b502d981bd904883ef5253cde2e71a7495d Mon Sep 17 00:00:00 2001 From: Michael Suo Date: Sat, 7 Sep 2019 00:59:46 -0700 Subject: [PATCH] Update test_quantized.py --- test/test_quantized.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_quantized.py b/test/test_quantized.py index f54fe17522c7..4d95920f6c6b 100644 --- a/test/test_quantized.py +++ b/test/test_quantized.py @@ -15,7 +15,7 @@ def canonical(graph): def _quantize(x, scale, zero_point, qmin=0, qmax=255, qtype=np.uint8): """Quantizes a numpy array.""" qx = np.round(x/scale + zero_point) - qx = np.clip(qx, qmin, qmax).astype(qtype) + qx = np.clip(qx,qmin, qmax).astype(qtype) return qx