表示用于创建 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 生成