torch.ScalarWebGPUKernelConfig
export interface ScalarWebGPUKernelConfig {
/**
* WGSL shader source code.
*/
readonly shader: string;
/**
* Entry point function name in the shader.
*/
readonly entryPoint: string;
/**
* Workgroup size override. Defaults to [256].
*/
readonly workgroupSize?: readonly [number, number?, number?];
}- readonly
shader(string) - – WGSL shader source code.
- readonly
entryPoint(string) - – Entry point function name in the shader.
- readonly
workgroupSize(readonly [number, number?, number?])optional - – Workgroup size override. Defaults to [256].
WebGPU scalar kernel configuration.