Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
wweic committed Oct 17, 2019
1 parent 837b1e5 commit eb938ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/python/relay/test_adt.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,11 +738,11 @@ def run(dtype):
run('int32')

def vmobj_to_list(o):
if isinstance(o, tvm.relay.backend.vmobj.TensorObject):
if isinstance(o, tvm.relay.backend.vmobj.Tensor):
return [o.asnumpy().tolist()]
elif isinstance(o, tvm.relay.backend.interpreter.TensorValue):
return [o.asnumpy()]
elif isinstance(o, tvm.relay.backend.vmobj.DatatypeObject):
elif isinstance(o, tvm.relay.backend.vmobj.Datatype):
result = []
for f in o:
result.extend(vmobj_to_list(f))
Expand Down

0 comments on commit eb938ad

Please sign in to comment.