Skip to content

Commit

Permalink
fixup! Stack-allocate DLTensor instances when necessary.
Browse files Browse the repository at this point in the history
  • Loading branch information
areusch committed Jan 5, 2022
1 parent 574da50 commit b16f605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/relay/backend/aot_executor_codegen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ class AOTExecutorCodegen : public MixedModeVisitor {
func_call,
GenerateDeviceHook(context, "Close"),
}));
} else if (use_call_cpacked_) {
} else if (use_call_cpacked_ && !use_unpacked_api_) {
// call_cpacked calling convention needs a blank context
args.push_back(tir::make_zero(DataType::Handle()));
tir::Evaluate func_call(tvm::tir::Call(DataType::Int(32), calling_pattern, args));
Expand Down

0 comments on commit b16f605

Please sign in to comment.