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 full)

Properties

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

Generated using TypeDoc