zhiics commented on a change in pull request #5161: [REFACTOR][IR] alpha_equal
to structural_equal
URL: https://github.com/apache/incubator-tvm/pull/5161#discussion_r399697190
##########
File path: src/relay/op/tensor/transform.cc
##########
@@ -2142,7 +2142,9 @@ Expr MakeSplit(Expr data,
TVM_REGISTER_GLOBAL("relay.op._make.split")
.set_body([](const TVMArgs& args, TVMRetValue* rv) {
if (args.type_codes[1] == kDLInt) {
- *rv = MakeSplit(args[0], tir::make_const(DataType::Int(64),
int64_t(args[1])), args[2]);
+ *rv = MakeSplit(args[0],
+ tir::make_const(DataType::Int(32),
static_cast<int>(args[1])),
Review comment:
Yeah, the transformed graph uses int32. The other way is probably to find
out where it is transformed and use int64 there.
----------------------------------------------------------------
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]
With regards,
Apache Git Services