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
[frontend][typing] Adding typing & small fix for autotuner.py (#5459)
Hello everyone!
# Context
I've been working on improving the compatibility of torch.compile with
user-defined Triton kernels and recently ran into a type checking (and
potential correctness) issue
[here](https://github.com/pytorch/pytorch/pull/142207/files#diff-f5fa7d0e418e91c63fa56d577a92a294c87e19318a3c8b3736ac4254eaa51db9R1054).
This doesn't type the entire file, but it fixes several typing issues in
autotuner.py. There is a plan to revisit this file and other user-facing
portions of the API---but since this catches a potential bug I thought
it would be worth filing this sooner rather than later.
# Testing
I ran the pre-commit hooks and `python3 -m python/test/unit`.
I ran mypy with the following command:
```bash
mypy python/triton/runtime/autotuner.py | grep autotune
```
and the python unit tests.
0 commit comments