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/12/24 08:09:56 UTC

[GitHub] [tvm] jcf94 commented on a change in pull request #7156: [AutoScheduler] Update layout rewrite option setting for measuring

jcf94 commented on a change in pull request #7156:
URL: https://github.com/apache/tvm/pull/7156#discussion_r548440354



##########
File path: src/auto_scheduler/compute_dag.cc
##########
@@ -1023,7 +1032,10 @@ ComputeDAG ComputeDAG::RewriteLayout(Array<Step>* transform_steps,
             }
             original_compute_op = op;
             CHECK(!new_compute_op.defined());
-            new_compute_op = te::ComputeOp(pop->name, pop->tag, pop->attrs, pop->axis, new_body);
+            auto new_attrs = pop->attrs;
+            new_attrs.Set("ori_placeholder_layout", tvm::String(origin_layout));
+            new_attrs.Set("new_placeholder_layout", tvm::String(new_layout));
+            new_compute_op = te::ComputeOp(pop->name, pop->tag, new_attrs, pop->axis, new_body);

Review comment:
       I'm finding that we can get the updated layout information here, can this help us not to add extra things to structures like `Conv2DAttrs`? @merrymercy 




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