mehrdadh commented on code in PR #13046:
URL: https://github.com/apache/tvm/pull/13046#discussion_r992877290
##########
src/runtime/aot_executor/aot_executor.cc:
##########
@@ -107,7 +108,7 @@ PackedFunc AotExecutor::GetFunction(const std::string& name,
} else if (name == "set_input_zero_copy") {
return PackedFunc([sptr_to_self, this](TVMArgs args, TVMRetValue* rv) {
if (String::CanConvertFrom(args[0])) {
- int in_idx = this->GetInputIndex(args[0].operator String());
+ int in_idx =
this->GetInputIndex(tvm::runtime::SanitizeName(args[0].operator String()));
Review Comment:
I added a test which exams both mangled name and the original name
--
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]