Skip to content

Commit 44f4dcb

Browse files
committed
[api] Add a new nnfw EXECUTORCH_LLAMA
- Add a enum for new nnfw `EXECUTORCH_LLAMA` Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
1 parent 1674c69 commit 44f4dcb

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

c/include/ml-api-common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ typedef enum {
7575
ML_NNFW_TYPE_NCNN = 18, /**< Tencent ncnn (Since 9.0) */
7676
ML_NNFW_TYPE_TENSORRT = 19, /**< NVidia Tensor-RT (Since 9.0) */
7777
ML_NNFW_TYPE_QNN = 20, /**< Qualcomm QNN (Qualcomm® AI Engine Direct) (Since 9.0) */
78+
ML_NNFW_TYPE_EXECUTORCH_LLAMA = 21, /**< ExecuTorch Llama runner */
7879
ML_NNFW_TYPE_SNAP = 0x2001, /**< SNAP (Samsung Neural Acceleration Platform), only for Android. (Since 6.0) */
7980
} ml_nnfw_type_e;
8081

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ static const char *ml_nnfw_subplugin_name[] = {
112112
[ML_NNFW_TYPE_NCNN] = "ncnn",
113113
[ML_NNFW_TYPE_TENSORRT] = "tensorrt",
114114
[ML_NNFW_TYPE_QNN] = "qnn",
115+
[ML_NNFW_TYPE_EXECUTORCH_LLAMA] = "executorch-llama",
115116
NULL
116117
};
117118

@@ -1985,6 +1986,7 @@ _ml_validate_model_file (const char *const *model,
19851986
case ML_NNFW_TYPE_ONNX_RUNTIME:
19861987
case ML_NNFW_TYPE_NCNN:
19871988
case ML_NNFW_TYPE_TENSORRT:
1989+
case ML_NNFW_TYPE_EXECUTORCH_LLAMA:
19881990
case ML_NNFW_TYPE_QNN:
19891991
/**
19901992
* We cannot check the file ext with NNFW.

0 commit comments

Comments
 (0)