spectrometerHBH commented on a change in pull request #9041:
URL: https://github.com/apache/tvm/pull/9041#discussion_r715293249



##########
File path: include/tvm/tir/schedule/schedule.h
##########
@@ -364,6 +364,17 @@ class ScheduleNode : public runtime::Object {
    */
   virtual void ReverseComputeInline(const BlockRV& block) = 0;
   /******** Schedule: Reduction ********/
+  /*!
+   * \brief Decompose a reduction block into init block and update block, 
where the newly generated
+     init block will be before the specified loop.
+     1) The block is a reduction block.
+     2) The loop is the ancestor of the block.
+     3) The loop is not lower than all the loops related to reduce block var.
+   * \param block_rv The reduction block to be decomposed
+   * \param loop_rv The position where init block is inserted
+   * \return The init block
+   */
+  virtual BlockRV DecomposeReduction(const BlockRV& block_rv, const LoopRV& 
loop_rv) = 0;

Review comment:
       Yes




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