ganler edited a comment on pull request #9582:
URL: https://github.com/apache/tvm/pull/9582#issuecomment-980490192


   > TVM has a pretty fragile system of using i32 vs i64; I personally 
experienced it a few times before...
   
   In most cases I think it's fine since when we call `a + b`, we are actually 
calling `add` (in op.cc) which will help to simply the expression and do 
necessary casting. Here that i32 and i64 are "fighting with each other" is 
because type mismatch in IR substitution.
   
   That said, in IR substitution, it is ill-formed to have `vmap[int32_var] = 
int64_var`. So we can do `vmap[key] = cast<key.dtype>(value)` during 
substitution map construction. I am not sure if there's other cases like this.


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