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
083e0f33
Commit
083e0f33
authored
Jan 07, 2019
by
Wei Chen
Committed by
Tianqi Chen
Jan 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve if_parser_enabled (#2372)
parent
426e3bb0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
tests/python/relay/test_ir_parser.py
+2
-1
No files found.
tests/python/relay/test_ir_parser.py
View file @
083e0f33
...
@@ -2,6 +2,7 @@ import tvm
...
@@ -2,6 +2,7 @@ import tvm
from
tvm
import
relay
from
tvm
import
relay
from
tvm.relay.parser
import
enabled
from
tvm.relay.parser
import
enabled
from
tvm.relay.ir_pass
import
alpha_equal
from
tvm.relay.ir_pass
import
alpha_equal
from
nose
import
SkipTest
from
nose.tools
import
nottest
,
raises
from
nose.tools
import
nottest
,
raises
from
numpy
import
isclose
from
numpy
import
isclose
from
typing
import
Union
from
typing
import
Union
...
@@ -67,7 +68,7 @@ def if_parser_enabled(func):
...
@@ -67,7 +68,7 @@ def if_parser_enabled(func):
@wraps
(
func
)
@wraps
(
func
)
def
wrapper
():
def
wrapper
():
if
not
enabled
():
if
not
enabled
():
r
eturn
r
aise
SkipTest
(
"ANTLR is not installed!"
)
func
()
func
()
return
wrapper
return
wrapper
...
...
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