Skip to content

Commit 2622c67

Browse files
committed
[api] Let single handle executorch-llama as flexible filter
- Let single API handle executorch-llama as flexible filter thus do invoke-dynamic. Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
1 parent 44f4dcb commit 2622c67

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

c/src/ml-api-inference-single.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,14 +1093,9 @@ ml_single_open_custom (ml_single_h * single, ml_single_preset * info)
10931093
}
10941094

10951095
/* handle flexible single */
1096-
/**
1097-
* Set invoke_dynamic as TRUE if the given nnfw do invoke_dynamic
1098-
*
1099-
* if (info->nnfw == ML_NNFW_TYPE_EXECUTORCH_LLAMA || info->nnfw == ML_NNFW_TYPE_LLAMACPP) {
1100-
* invoke_dynamic = TRUE;
1101-
* }
1102-
*
1103-
*/
1096+
if (info->nnfw == ML_NNFW_TYPE_EXECUTORCH_LLAMA) {
1097+
invoke_dynamic = TRUE;
1098+
}
11041099

11051100
if (invoke_dynamic) {
11061101
single_h->is_flexible = TRUE;

0 commit comments

Comments
 (0)