From e47dd05f05f70a08cb603fde1a78484f95195aa1 Mon Sep 17 00:00:00 2001 From: Yulong Wang <7679871+fs-eire@users.noreply.github.com> Date: Fri, 24 Jan 2025 14:19:55 -0800 Subject: [PATCH] [js] update JavaScript API to support QNN EP options --- js/common/lib/inference-session.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/js/common/lib/inference-session.ts b/js/common/lib/inference-session.ts index e62c6579e8333..26784be41ca7c 100644 --- a/js/common/lib/inference-session.ts +++ b/js/common/lib/inference-session.ts @@ -308,7 +308,18 @@ export declare namespace InferenceSession { export interface QnnExecutionProviderOption extends ExecutionProviderOption { readonly name: 'qnn'; - // TODO add flags + /** + * Specify a path to the QnnHtp.dll file. + * + * @default 'QnnHtp.dll' + */ + backendPath?: string; + /** + * Specify whether to enable HTP FP16 precision. + * + * @default true + */ + enableFp16Precision?: boolean; } export interface CoreMLExecutionProviderOption extends ExecutionProviderOption { readonly name: 'coreml';