表示用於建立 WebNN MLContext 的一組選項。

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

繼承關係 (檢視完整)

屬性

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

使用 TypeDoc 生成