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/06/21 02:57:41 UTC

[GitHub] [incubator-tvm] mbrookhart commented on a change in pull request #5856: Fail early before running invalid dynamic graphs

mbrookhart commented on a change in pull request #5856:
URL: https://github.com/apache/incubator-tvm/pull/5856#discussion_r443176477



##########
File path: python/tvm/relay/backend/vm.py
##########
@@ -253,6 +254,12 @@ def _make_executor(self, expr=None):
 
         def _vm_wrapper(*args, **kwargs):
             args = self._convert_args(main, args, kwargs)
+            ret_type = self.mod["main"].checked_type.ret_type
+            if type_has_any(ret_type) and "llvm" not in str(self.target) and "arm" not in str(
+                    self.target):
+                raise ValueError(
+                    "Virtual Machine only supports static graphs on CPU, got output type",

Review comment:
       Thanks for catching it!




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