From faee9125fb9769268ef6c741502184a1200e306c Mon Sep 17 00:00:00 2001 From: Yulong Wang <7679871+fs-eire@users.noreply.github.com> Date: Mon, 3 Feb 2025 17:38:50 -0800 Subject: [PATCH] [js] update JavaScript API to support QNN EP options (#23486) ### Description As a pre-requisite of #23468 --- 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 e62c6579e8..26784be41c 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';