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

 ##########
 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:
   Is it because the transformed pass uses int32 to construct the attributes?

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

Reply via email to