Skip to content

Commit

Permalink
[USMP] Fix assert condition for TVMBackendAllocWorkspace (apache#11270)
Browse files Browse the repository at this point in the history
* Fix test condition

* fix
  • Loading branch information
mehrdadh authored and Sergey Shtin committed May 17, 2022
1 parent 0edb7c5 commit 62d8c18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/python/relay/aot/test_crt_aot_usmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ def check_for_no_tvm_backendallocworkspace_calls(mod: tvm.runtime.module):
dso_mod.type_key == "c"
), 'Current CRT AoT codegen flow should only produce type "c" runtime modules'
source = dso_mod.get_source()
source.count(
"TVMBackendAllocWorkspace"
) == 0, "This is failing because USMP was unable to plan for every tir.allocate node"
assert (
source.count("TVMBackendAllocWorkspace") == 0
), "This is failing because USMP was unable to plan for every tir.allocate node"


@pytest.mark.parametrize(
Expand Down

0 comments on commit 62d8c18

Please sign in to comment.