junrushao1994 commented on a change in pull request #5687:
URL: https://github.com/apache/incubator-tvm/pull/5687#discussion_r434169926
##########
File path: src/runtime/graph/graph_runtime.cc
##########
@@ -418,6 +419,9 @@ PackedFunc GraphRuntime::GetFunction(const std::string&
name,
int in_idx = 0;
if (args[0].type_code() == kTVMStr) {
in_idx = this->GetInputIndex(args[0]);
+ } else if (args[0].IsObjectRef<runtime::String>()) {
+ auto str = args[0].AsObjectRef<runtime::String>();
+ in_idx = this->GetInputIndex(str);
Review comment:
Is this saying we overload "operator T" of `TVMArgValue`? Do we put it
in container.h or packed_func.h?
----------------------------------------------------------------
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]