Skip to content

Commit

Permalink
[OV JS] Fix typescript method definition (#23185)
Browse files Browse the repository at this point in the history
### Details:
 - Move `getAvailableDevices` to `Core` definition
  • Loading branch information
almilosz authored Mar 4, 2024
1 parent e2a7495 commit e6dc086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bindings/js/node/lib/addon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ interface Core {
modelBuffer: Uint8Array, weightsBuffer?: Uint8Array): Promise<Model>;
readModelSync(modelPath: string, weightsPath?: string): Model;
readModelSync(modelBuffer: Uint8Array, weightsBuffer?: Uint8Array): Model;
getAvailableDevices(): string[];
}
interface CoreConstructor {
new(): Core;
Expand Down Expand Up @@ -81,7 +82,6 @@ interface InferRequest {
inferAsync(inputData: { [inputName: string]: Tensor}
| Tensor[] ): Promise<{ [outputName: string] : Tensor}>;
getCompiledModel(): CompiledModel;
getAvailableDevices(): string[];
}

type Dimension = number | [number, number];
Expand Down

0 comments on commit e6dc086

Please sign in to comment.