junrushao commented on code in PR #12796:
URL: https://github.com/apache/tvm/pull/12796#discussion_r972410804


##########
src/meta_schedule/schedule_rule/add_rfactor.cc:
##########
@@ -36,6 +36,16 @@ class AddRFactorNode : public ScheduleRuleNode {
   // Inherited from ScheduleRuleNode
   Array<tir::Schedule> Apply(const tir::Schedule& sch, const tir::BlockRV& 
block_rv);
 
+  // Inherited from ScheduleRuleNode
+  ScheduleRule Clone() final {
+    ObjectPtr<AddRFactorNode> n = make_object<AddRFactorNode>(*this);
+    n->max_jobs_per_core = this->max_jobs_per_core;
+    n->max_innermost_factor = this->max_innermost_factor;
+    n->max_parallel_extent_ = this->max_parallel_extent_;
+    n->max_parallel_basic_ = this->max_parallel_basic_;

Review Comment:
   Those fields are already copied in `make_object<AddRFactorNode>(*this)`



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