onnxruntime/js/web/lib/wasm/jsep/webgpu
Jiajia Qin cd3fb377ea
[js/webgpu] Allow binary ops with scalar to use the vectorize path (#17589)
### Description
1. For binary ops, the components is always 4. So the dispatchGroup
should be : `{x: Math.ceil(outputSize / 64 /* workgroup size */ / 4 /*
component size */)}` instead of `{x: Math.ceil(outputSize / 64 /*
workgroup size */ / (vectorize ? 4 : 1) /* vec size */)}`.

2. If any of a or b only has one element, we still can use the vectorize
path since the same value will be broadcasted.
2023-09-21 20:55:08 -07:00
..
ops [js/webgpu] Allow binary ops with scalar to use the vectorize path (#17589) 2023-09-21 20:55:08 -07:00
attribute-with-cache-key.ts
gpu-data-manager.ts [js/webgpu] add kernel Not and Equal (#17306) 2023-08-27 19:50:17 -07:00
op-resolve-rules.ts [WebGPU/JS] Added Pad operator support (#16928) 2023-09-14 13:14:11 -07:00
program-manager.ts [js/web] revise TensorView (#17473) 2023-09-14 21:14:44 -07:00
types.ts [js/web] revise TensorView (#17473) 2023-09-14 21:14:44 -07:00