[js] update JavaScript API to support QNN EP options (#23486)

### Description

As a pre-requisite of #23468
This commit is contained in:
Yulong Wang 2025-02-03 17:38:50 -08:00 committed by GitHub
parent 816e8cb2fb
commit faee9125fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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';