表示不带 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 生成