DzAvril commented on a change in pull request #10650:
URL: https://github.com/apache/tvm/pull/10650#discussion_r829883486



##########
File path: python/tvm/autotvm/task/topi_integration.py
##########
@@ -231,14 +239,27 @@ def _decorate(topi_schedule):
         @_register_task_schedule(task_name)
         def wrapper(outs, *args, **kwargs):
             """wrapper function for topi schedule"""
-            workload = get_workload(outs, task_name)
+            task_env = TaskExtractEnv.current
+            if GLOBAL_SCOPE.tune_subgraph and task_env is not None and not 
task_env.tracing:
+                # get workload of subgraph

Review comment:
       have added an annotation in code -> get subgraph's workload which is 
attached to the last op, because the anchor op has attached workload too, so we 
should get by post order




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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to