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
83c932aa
Commit
83c932aa
authored
Jul 10, 2019
by
Zhi
Committed by
Jared Roesch
Jul 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[bugfix] fix the bug caused by test_any (#3528)
parent
3fb84e2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
tests/python/relay/test_any.py
+2
-7
No files found.
tests/python/relay/test_any.py
View file @
83c932aa
...
@@ -14,18 +14,13 @@
...
@@ -14,18 +14,13 @@
# KIND, either express or implied. See the License for the
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# specific language governing permissions and limitations
# under the License.
# under the License.
import
numpy
as
np
import
tvm
import
tvm
from
tvm
import
relay
from
tvm
import
relay
from
tvm.relay
import
Kind
,
transform
from
tvm.relay
import
Kind
,
transform
from
tvm.relay.loops
import
while_loop
from
tvm.relay.loops
import
while_loop
import
numpy
as
np
from
tvm.relay.testing
import
run_infer_type
as
infer_type
def
infer_type
(
expr
):
mod
=
relay
.
Module
.
from_expr
(
expr
)
mod
=
transform
.
InferType
()(
mod
)
entry
=
mod
[
mod
.
entry_func
]
return
entry
if
isinstance
(
expr
,
relay
.
Function
)
else
entry
.
body
def
int32
(
val
):
def
int32
(
val
):
return
relay
.
const
(
val
,
'int32'
)
return
relay
.
const
(
val
,
'int32'
)
...
...
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