Skip to content

Commit

Permalink
[js] update JavaScript API to support QNN EP options (microsoft#23486)
Browse files Browse the repository at this point in the history
### Description

As a pre-requisite of microsoft#23468
  • Loading branch information
fs-eire authored Feb 4, 2025
1 parent 816e8cb commit faee912
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion js/common/lib/inference-session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit faee912

Please sign in to comment.