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/11/18 07:19:51 UTC

[GitHub] [incubator-tvm] comaniac commented on a change in pull request #6935: [AutoScheduler] Improve warning messages

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



##########
File path: python/tvm/relay/op/strategy/cuda.py
##########
@@ -101,6 +101,17 @@ def schedule_lrn_cuda(attrs, outs, target):
         return topi.cuda.schedule_lrn(outs)
 
 
+def naive_schedule(_, outs, target):
+    """Return the naive default schedule"""
+    if "gpu" in target.keys:
+        # For GPU, we at least need thread binding to make a valid schedule.
+        # So the naive schedule cannot be compiled.
+        raise RuntimeError(
+            "Cannot compile for GPU targets if no tuned schedule is found. Please see the warning messages above for more information about the failed workloads."
+        )
+    return tvm.te.create_schedule(outs[-1].op)

Review comment:
       Maybe we need to add a comment saying that it would be a problem for the DAG with multiple outputs.




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