Skip to content

Commit

Permalink
[api] Add a new nnfw EXECUTORCH_LLAMA
Browse files Browse the repository at this point in the history
- Add a enum for new nnfw `EXECUTORCH_LLAMA`

Signed-off-by: Yongjoo Ahn <[email protected]>
  • Loading branch information
anyj0527 committed Oct 29, 2024
1 parent f5b00af commit 120c938
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions c/include/ml-api-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ typedef enum {
ML_NNFW_TYPE_NCNN = 18, /**< Tencent ncnn (Since 9.0) */
ML_NNFW_TYPE_TENSORRT = 19, /**< NVidia Tensor-RT (Since 9.0) */
ML_NNFW_TYPE_QNN = 20, /**< Qualcomm QNN (Qualcomm® AI Engine Direct) (Since 9.0) */
ML_NNFW_TYPE_EXECUTORCH_LLAMA = 21, /**< ExecuTorch Llama runner */
ML_NNFW_TYPE_SNAP = 0x2001, /**< SNAP (Samsung Neural Acceleration Platform), only for Android. (Since 6.0) */
} ml_nnfw_type_e;

Expand Down
2 changes: 2 additions & 0 deletions c/src/ml-api-inference-single.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ static const char *ml_nnfw_subplugin_name[] = {
[ML_NNFW_TYPE_NCNN] = "ncnn",
[ML_NNFW_TYPE_TENSORRT] = "tensorrt",
[ML_NNFW_TYPE_QNN] = "qnn",
[ML_NNFW_TYPE_EXECUTORCH_LLAMA] = "executorch-llama",
NULL
};

Expand Down Expand Up @@ -1957,6 +1958,7 @@ _ml_validate_model_file (const char *const *model,
case ML_NNFW_TYPE_ONNX_RUNTIME:
case ML_NNFW_TYPE_NCNN:
case ML_NNFW_TYPE_TENSORRT:
case ML_NNFW_TYPE_EXECUTORCH_LLAMA:
case ML_NNFW_TYPE_QNN:
/**
* We cannot check the file ext with NNFW.
Expand Down

0 comments on commit 120c938

Please sign in to comment.