tvm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-tvm] comaniac commented on a change in pull request #5701: [BYOC] Support Tuple Output in C/DNNL Codegen
Date Fri, 29 May 2020 23:53:24 GMT

comaniac commented on a change in pull request #5701:
URL: https://github.com/apache/incubator-tvm/pull/5701#discussion_r432785888



##########
File path: tests/python/relay/test_pass_partition_graph.py
##########
@@ -201,8 +202,11 @@ def check_vm_result():
         exe = runtime.vm.Executable.load_exec(code, lib)
         vm = runtime.vm.VirtualMachine(exe)
         vm.init(ctx)
-        out = vm.run(**map_inputs)
-        tvm.testing.assert_allclose(out.asnumpy(), result, rtol=tol, atol=tol)
+        outs = vm.run(**map_inputs)
+        outs = outs if len(outs) > 1 else [outs]

Review comment:
       Yeah the test failed because of this. Changing to `isinstance(outs, runtime.container.ADT)`




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Mime
View raw message