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
440df0aa
Unverified
Commit
440df0aa
authored
Jul 24, 2019
by
Zhi
Committed by
GitHub
Jul 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Relay][vm] Small bug fix for DataTypeObject (#3604)
* small bug fix for DataTypeObject * retrigger ci
parent
d6dcd6c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
python/tvm/relay/backend/vmobj.py
+1
-1
tests/python/relay/test_vm.py
+3
-0
No files found.
python/tvm/relay/backend/vmobj.py
View file @
440df0aa
...
...
@@ -85,7 +85,7 @@ class DatatypeObject(Object):
return
self
.
fields
[
idx
]
def
__len__
(
self
):
return
self
.
num_fields
return
len
(
self
.
fields
)
def
__iter__
(
self
):
return
iter
(
self
.
fields
)
...
...
tests/python/relay/test_vm.py
View file @
440df0aa
...
...
@@ -213,6 +213,9 @@ def test_list_constructor():
mod
[
"main"
]
=
f
result
=
veval
(
mod
)
assert
len
(
result
)
==
2
assert
len
(
result
[
1
])
==
2
obj
=
vmobj_to_list
(
result
)
tvm
.
testing
.
assert_allclose
(
obj
,
np
.
array
([
3
,
2
,
1
]))
...
...
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