Lunderberg opened a new pull request, #14320:
URL: https://github.com/apache/tvm/pull/14320

   Usually, when using TVMScript to represent a `PrimFunc` variable definition 
`var_name = expr` defines `LetStmt` with a variable named `var_name` bound to 
the expression `expr`.  However, prior to this commit, if `expr` is a 
`tir::Var`, the TVMScript parser would instead silently omit the `LetStmt`, and 
rename all instances of that variable to `var_name`.
   
   The root cause was in the `VarTable.exist` check, which erroneously returned 
False in all cases.  This was due to a `value is v` check, which checked if the 
value was the same as the stack of maybe-shadowing values that share the same 
name.  Replacing the 'value is v` check with a `value in v` check resolves this 
issue.
   
   This bug dates to the initial implementation of the new TVMScript parser in 
https://github.com/apache/tvm/pull/12496.


-- 
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-unsubscr...@tvm.apache.org

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

Reply via email to