You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2020/05/29 23:52:11 UTC

[GitHub] [incubator-tvm] zhiics commented on a change in pull request #5701: [BYOC] Support Tuple Output in C/DNNL Codegen

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



##########
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:
       is `len(outs)` oaky? It doesn't necessarily be an ADTObj/array, right? what if it is an objectref (i.e. NDArray in this case)?




----------------------------------------------------------------
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