Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
2b916975
Commit
2b916975
authored
Jan 03, 2020
by
Zhi
Committed by
Tianqi Chen
Jan 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skip example json runtime test when config is not set (#4614)
parent
96c2b36b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
tests/python/relay/test_external_runtime.py
+4
-2
No files found.
tests/python/relay/test_external_runtime.py
View file @
2b916975
...
...
@@ -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
)
...
...
@@ -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
# Get subgraph Json.
subgraph_json
=
(
"json_rt_0
\n
"
+
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment