You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Summary
Adds WebGPU test coverage for existing `aten.mul.Tensor` and
`aten.sigmoid.default` support.
This updates the WebGPU Python op tests to cover:
- additional `mul` broadcast shapes, including leading-dimension and
mixed 4D broadcast cases
- wider sigmoid saturation inputs
- chained sigmoid delegation
- op-test registry/schema coverage for `mul` and `sigmoid`
- generator delegation checks so registered `mul` and `sigmoid` cases
must lower to the WebGPU delegate path
No WebGPU runtime, shader, CMake, README, or TODO files are changed in
this PR.
### Test plan
- `git diff --check`
- `.venv-pyproject/bin/python -m py_compile
backends/webgpu/test/op_tests/cases.py
backends/webgpu/test/op_tests/test_generator.py
backends/webgpu/test/op_tests/test_schema.py
backends/webgpu/test/ops/test_mul.py
backends/webgpu/test/ops/test_sigmoid.py`
-
`PATH=/Users/orlando/Documents/dev/executorch/.venv-pyproject/bin:$PATH
.venv-pyproject/bin/lintrunner --data-path
/tmp/executorch_lintrunner_pyproject
backends/webgpu/test/op_tests/cases.py
backends/webgpu/test/op_tests/test_generator.py
backends/webgpu/test/op_tests/test_schema.py
backends/webgpu/test/ops/test_mul.py
backends/webgpu/test/ops/test_sigmoid.py`
- `PYTHONPYCACHEPREFIX=/tmp/executorch_pyproject_pycache
.venv-pyproject/bin/python -m pytest
backends/webgpu/test/ops/test_mul.py
backends/webgpu/test/ops/test_sigmoid.py
backends/webgpu/test/op_tests/test_schema.py
backends/webgpu/test/op_tests/test_generator.py -vv`
Result: `13 passed in 120.77s`
---------
Co-authored-by: Julian Ng-Thow-Hing <107437036+JCNTH@users.noreply.github.com>
0 commit comments