表示不帶 MLContext 的 WebNN 執行提供程式的一組選項。

interface WebNNOptionsWithoutMLContext {
    context?: undefined;
    deviceType?: "cpu" | "gpu" | "npu";
    name: "webnn";
    numThreads?: number;
    powerPreference?: "default" | "high-performance" | "low-power";
}

層級 (檢視完整層級)

屬性

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

使用 TypeDoc 生成