Property addon#

The openvino-node package exports addon which contains the following properties:

Interface NodeAddon

export interface NodeAddon {
    Core: CoreConstructor;
    Tensor: TensorConstructor;
    PartialShape: PartialShapeConstructor;

    preprocess: {
      resizeAlgorithm: typeof resizeAlgorithm;
      PrePostProcessor: PrePostProcessorConstructor;
    };
    saveModelSync(model: Model, path: string, compressToFp16?: boolean): void;
    element: typeof element;
  }

Properties#

Core

PartialShape

Tensor

element

preprocess

saveModelSync

  • saveModelSync(model: Model, path: string, compressToFp16?: boolean): void;
    

    This method saves a model to IR (xml and bin files), applying all necessary transformations that are usually added during model conversion. Particularly, weights are compressed to FP16 by default, and debug information in model nodes is cleaned up.

    • Parameters:

      • model: Model

        A model which will be converted to IR and saved.

      • path: string

        A path for saving the model.

      • Optional

        • compressToFp16: boolean

          Compression of weights to FP16 floating point precision. The default value is true .

    • Returns: void

    • Defined in: addon.ts:692