From 8a3e7082f62c30739ba7bbb48e91d94102bf939a Mon Sep 17 00:00:00 2001 From: Henry Hsieh Date: Mon, 1 Sep 2025 01:04:27 +0800 Subject: [PATCH] [BugFix][NNAPI] Use kind() after FFI refactor This commit updates nnapi_runtime.cc to override kind() instead of type_key(), aligning NNAPI with the new FFI interface. Behavior is consistent with other runtimes that were updated in commit b8eb80b. --- src/runtime/contrib/nnapi/nnapi_runtime.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/contrib/nnapi/nnapi_runtime.cc b/src/runtime/contrib/nnapi/nnapi_runtime.cc index 71335f3ee287..51047d90fd73 100644 --- a/src/runtime/contrib/nnapi/nnapi_runtime.cc +++ b/src/runtime/contrib/nnapi/nnapi_runtime.cc @@ -54,7 +54,7 @@ class NNAPIRuntime : public JSONRuntimeBase { const Array& const_names) : JSONRuntimeBase(symbol_name, graph_json, const_names) {} - const char* type_key() const final { return "nnapi"; } + const char* kind() const final { return "nnapi"; } #ifdef TVM_GRAPH_EXECUTOR_NNAPI struct CompiledModel {