tqchen commented on a change in pull request #7785:
URL: https://github.com/apache/tvm/pull/7785#discussion_r608167553



##########
File path: src/tir/transforms/lower_tvm_builtin.cc
##########
@@ -247,7 +247,7 @@ class BuiltinLower : public StmtExprMutator {
     Array<PrimExpr> packed_args = {op->args[0], stack_value_, stack_tcode_,
                                    ConstInt32(arg_stack_begin),
                                    ConstInt32(arg_stack_begin + 
op->args.size() - 1)};
-    return Call(DataType::Int(32), builtin::tvm_call_packed_lowered(), 
packed_args);
+    return Call(op->dtype, builtin::tvm_call_packed_lowered(), packed_args);

Review comment:
       the return value of tvm_call_packed_lowered is int32, and the return 
value is passed through the return value argument instead of the return type, 
so it is supposed to be i32




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


Reply via email to