Skip to content

Commit

Permalink
Fix for CI failure because of newly added passes
Browse files Browse the repository at this point in the history
Change-Id: If52d9214aca6ec0d4bd7d52d89011c23cd79cd57
  • Loading branch information
ashutosh-arm committed Nov 5, 2021
1 parent 864fc25 commit d17daf5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/python/contrib/test_cmsisnn/test_binary_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def test_op_int8(op, input_0_scale, input_0_zero_point, input_1_scale, input_1_z
)


@skip_if_no_reference_system
@tvm.testing.requires_cmsisnn
@pytest.mark.parametrize("op", [relay.qnn.op.mul, relay.qnn.op.add])
@pytest.mark.parametrize(["input_dtype"], [["uint8"], ["int16"]])
Expand Down
1 change: 1 addition & 0 deletions tests/python/contrib/test_cmsisnn/test_conv2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ def parameterize_for_invalid_model(test):
)(test)


@tvm.testing.requires_cmsisnn
@parameterize_for_invalid_model
def test_invalid_parameters(
in_dtype,
Expand Down
4 changes: 4 additions & 0 deletions tests/python/contrib/test_cmsisnn/test_extract_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def set_external_func_attr(func, compiler, ext_symbol):
return func


@tvm.testing.requires_cmsisnn
def test_external_function():
y0_data = np.random.uniform(0, 1, (8, 8)).astype("float32")
x0 = relay.var("x0", shape=(8, 8))
Expand All @@ -81,6 +82,7 @@ def test_external_function():
relay.transform.InferType()(mod)


@tvm.testing.requires_cmsisnn
def test_nested_function():
y1_data = np.random.uniform(0, 1, (8, 8)).astype("float32")
x1 = relay.var("x1", shape=(8, 8))
Expand Down Expand Up @@ -109,6 +111,7 @@ def test_nested_function():
relay.transform.InferType()(mod)


@tvm.testing.requires_cmsisnn
def test_multiple_functions():
y20_data = np.random.uniform(0, 1, (8, 8)).astype("float32")
x20 = relay.var("x20", shape=(8, 8))
Expand Down Expand Up @@ -143,6 +146,7 @@ def test_multiple_functions():
relay.transform.InferType()(mod)


@tvm.testing.requires_cmsisnn
def test_main_function():
x0 = relay.var("x0", shape=(8, 8))
y0 = relay.var("y0", shape=(8, 8))
Expand Down

0 comments on commit d17daf5

Please sign in to comment.