JackWeiw commented on PR #16679:
URL: https://github.com/apache/tvm/pull/16679#issuecomment-1982165909

   Sir, x here refers to col size of a input matrix, it should never be zero, 
would it be make sense if i add condition that x > 0?发自我的手机-------- 原始邮件 
--------发件人: Eric Lunderberg ***@***.***>日期: 2024年3月7日周四 04:23收件人: apache/tvm 
***@***.***>抄送: Wei Tao ***@***.***>, Author ***@***.***>主    题: Re: 
[apache/tvm] Add some case in rewrite_simplify (PR #16679)
   @Lunderberg requested changes on this pull request.
   
   I did a bit of testing, and these simplifications should not occur.  For the 
test case TestCase(tvm.te.min(0, fld(x + 3, 4) * 4 - 1), 0), substituting 0 for 
x, the min(0, fld(x+3, 4)*4 - 1) would evaluate to min(0, -1).  However, this 
simplification would cause it to instead evaluate to 0.
   Similarly for TestCase(tvm.te.max(1, fld(x + 3, 4) * 4), fld(x + 3, 4) * 4), 
substituting zero for x results in max(1, 0), but the simplification rule would 
result in 0.
   
   —Reply to this email directly, view it on GitHub, or unsubscribe.You are 
receiving this because you authored the thread.Message ID: ***@***.***>


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