ONNX Runtime JavaScript API
    Preparing search index...

    Interface WebNNContextOptions

    Represents a set of options for creating a WebNN MLContext.

    interface WebNNContextOptions {
        deviceType?: "cpu" | "gpu" | "npu";
        numThreads?: number;
        powerPreference?: "default" | "high-performance" | "low-power";
    }

    Hierarchy (View Summary)

    Index

    Properties

    deviceType?: "cpu" | "gpu" | "npu"
    numThreads?: number
    powerPreference?: "default" | "high-performance" | "low-power"