ganler commented on a change in pull request #9582:
URL: https://github.com/apache/tvm/pull/9582#discussion_r757715225
##########
File path: src/tir/ir/expr.cc
##########
@@ -707,7 +707,8 @@ Ramp::Ramp(PrimExpr base, PrimExpr stride, int lanes, Span
span) {
ICHECK(base.dtype().is_scalar());
ICHECK(stride.dtype().is_scalar());
ICHECK_GT(lanes, 1);
- ICHECK_EQ(stride.dtype(), base.dtype());
+ ICHECK(base.dtype().is_int());
+ ICHECK(stride.dtype().is_int());
Review comment:
After the change, the ramp node will produce a checking error since the
shape variable is now of `int64` while other operands may be of `int32`.
--
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]