You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "yzh119 (via GitHub)" <gi...@apache.org> on 2023/04/07 17:17:58 UTC

[GitHub] [tvm] yzh119 commented on a diff in pull request #14502: [TensorIR][Schedule] Bugfix on `compute_inline` when buffer has symbolic shape

yzh119 commented on code in PR #14502:
URL: https://github.com/apache/tvm/pull/14502#discussion_r1160844278


##########
src/tir/schedule/primitive/compute_inline.cc:
##########
@@ -295,7 +295,8 @@ class BaseInliner : public StmtExprMutator {
    * \param stmt The statement in which to count undefined variables
    */
   static int GetNumUndefinedNonpointerVars(const Stmt& stmt) {
-    auto undefined_vars = UndefinedVars(stmt, {});
+    // Do not visit buffer shape/strides.
+    auto undefined_vars = UndefinedVars(/*stmt=*/stmt, /*defs=*/{}, /*visit_buffer=*/false);

Review Comment:
   @Lunderberg Thanks for your suggestion!
   I agree with you that collecting variables outside LCA producer/consumer is a better idea. I'll revise the code accordingly and ping you again once it's ready.
   



-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org