From 9e304b88f435d760973db2e4203d3ae25fd0c4e3 Mon Sep 17 00:00:00 2001 From: auphelia <jakobapk@web.de> Date: Fri, 12 Jun 2020 16:14:21 +0100 Subject: [PATCH] [Test] Update internal rounding test --- tests/core/test_basic_onnx_exec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/core/test_basic_onnx_exec.py b/tests/core/test_basic_onnx_exec.py index 1db8b2cec..7b0412432 100644 --- a/tests/core/test_basic_onnx_exec.py +++ b/tests/core/test_basic_onnx_exec.py @@ -73,7 +73,7 @@ def test_onnx_exec_internal_rounding(): model.set_tensor_datatype("inp1", idt) model.transform(InferShapes()) - mul_value = np.asarray([2], dtype=np.float32) + mul_value = np.asarray([-1], dtype=np.float32) inp_int = gen_finn_dt_tensor(idt, [2, 2]) scale = np.random.uniform(low=0, high=1, size=(2, 2)).astype(np.float32) inp_rounded = (inp_int * scale) / (scale + 1e-7) -- GitLab