hzfan commented on issue #6691: URL: https://github.com/apache/tvm/issues/6691#issuecomment-738715741
@tqchen The cast originates from https://github.com/apache/tvm/blob/main/src/te/schedule/operation_inline.cc#L67 For example, before inline, ``` for i from 0i32 to 10i32 for j from 0i32 to 10i32 T_add[i, j] = placeholder[i + j + 1i32, j] for i from 0i64 to 10i64 for j from 0i64 to 10i64 result[i, j] = T_add[i, j] ``` after inline, ``` result[i, j] = placeholder[cast(i32, i) + cast(i32, j) + 1i32, cast(i32, j)] ``` Perhaps I can do something with the SumExpr in CanonicalSimplifier to simplify this case. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
