From ff25948972efd9563a5d742b3c7caa935e769a72 Mon Sep 17 00:00:00 2001 From: maheshambule Date: Thu, 12 Mar 2020 21:20:12 +0530 Subject: [PATCH] CI CD fixes --- tests/python/{relay => }/converter/test_model.py | 0 tests/python/{relay => }/converter/test_onnx.py | 2 +- tests/scripts/task_python_converter.sh | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename tests/python/{relay => }/converter/test_model.py (100%) rename tests/python/{relay => }/converter/test_onnx.py (99%) diff --git a/tests/python/relay/converter/test_model.py b/tests/python/converter/test_model.py similarity index 100% rename from tests/python/relay/converter/test_model.py rename to tests/python/converter/test_model.py diff --git a/tests/python/relay/converter/test_onnx.py b/tests/python/converter/test_onnx.py similarity index 99% rename from tests/python/relay/converter/test_onnx.py rename to tests/python/converter/test_onnx.py index f52a9c12644cc..bc6a78dfe805d 100644 --- a/tests/python/relay/converter/test_onnx.py +++ b/tests/python/converter/test_onnx.py @@ -73,7 +73,7 @@ def test_bias_add(): for dtype in ['float16', 'float32']: xshape = (10, 2, 3, 4) bshape = (2,) - rtol = 1e-2 if dtype is 'float16' else 1e-5 + rtol = 1e-2 if dtype == 'float16' else 1e-5 x = relay.var("x", shape=xshape, dtype=dtype) bias = relay.var("bias", dtype=dtype) z = relay.nn.bias_add(x, bias) diff --git a/tests/scripts/task_python_converter.sh b/tests/scripts/task_python_converter.sh index fffe2aac44be8..7faccb2d6a4c0 100755 --- a/tests/scripts/task_python_converter.sh +++ b/tests/scripts/task_python_converter.sh @@ -30,6 +30,6 @@ find . -type f -path "*.pyc" | xargs rm -f make cython3 echo "Running relay to ONNX converter..." -python3 -m pytest -v tests/python/relay/converter/ +python3 -m pytest -v tests/python/converter/