表示 WebNN 执行提供程序(不使用 MLContext)的一组选项。

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 生成