Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[relay][test] skip example json runtime test when config is not set #4614

Merged
merged 1 commit into from
Jan 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions tests/python/relay/test_external_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ def get_whole_graph_json():
def run_extern(label, get_extern_src, **kwargs):
if which("gcc") is None:
print("Skip test because gcc is not available.")
return

obj_name = "{}.o".format(label)
lib_name = "external_{}.so".format(label)
Expand Down Expand Up @@ -492,8 +493,9 @@ def test_engine_extern():
options=["-O2", "-std=c++11", "-I" + tmp_path.relpath("")])

def test_json_extern():
if which("gcc") is None:
print("Skip test because gcc is not available.")
if not tvm.get_global_func("module.loadfile_examplejson", True):
print("Skip because JSON example runtime is not enabled.")
return
zhiics marked this conversation as resolved.
Show resolved Hide resolved

# Get subgraph Json.
subgraph_json = ("json_rt_0\n" +
Expand Down