diff --git a/src/bindings/js/node/lib/addon.ts b/src/bindings/js/node/lib/addon.ts index ae75f479e655e1..7f4f9fd917cd13 100644 --- a/src/bindings/js/node/lib/addon.ts +++ b/src/bindings/js/node/lib/addon.ts @@ -36,6 +36,7 @@ interface Core { modelBuffer: Uint8Array, weightsBuffer?: Uint8Array): Promise; readModelSync(modelPath: string, weightsPath?: string): Model; readModelSync(modelBuffer: Uint8Array, weightsBuffer?: Uint8Array): Model; + getAvailableDevices(): string[]; } interface CoreConstructor { new(): Core; @@ -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];