Lunderberg commented on PR #12457:
URL: https://github.com/apache/tvm/pull/12457#issuecomment-1216660464

   As a comment, this situation can occur by accident in Python when writing `1 
<= var`.  Because the lhs and rhs have different types, this is resolved as 
`var.__ge__(1)`, which generates `GE(var, 1)` instead of the desired `LE(1, 
var)`.  While this can be avoided by writing `IntImm(var.dtype, 1) < var`, it 
isn't immediately obvious to do so.


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