Maggie Moss
27302a4932
Fix error suppression syntax in onnx, jit, _dynamo ( #166249 )
...
Ensures pyrefly will only silence one specific error code
pyrefly check
lintrunner
Pull Request resolved: https://github.com/pytorch/pytorch/pull/166249
Approved by: https://github.com/oulgen
2025-10-27 02:01:54 +00:00
Yuanyuan Chen
9d0b77f4cd
[10/N] Apply ruff UP035 rule ( #165709 )
...
This is a follow-up of #165515 . ruff `UP035` rules are applied to dynamo code to use Py 3.10+ typing.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/165709
Approved by: https://github.com/ezyang
2025-10-25 00:20:13 +00:00
Maggie Moss
c855f8632e
Pyrefly suppressions 7/n ( #164913 )
...
Adds suppressions to pyrefly will typecheck clean: https://github.com/pytorch/pytorch/issues/163283
Almost there!
Test plan:
dmypy restart && python3 scripts/lintrunner.py -a
pyrefly check
step 1: delete lines in the pyrefly.toml file from the project-excludes field
step 2: run pyrefly check
step 3: add suppressions, clean up unused suppressions
before: https://gist.github.com/maggiemoss/4b3bf2037014e116bc00706a16aef199
after:
INFO 0 errors (6,884 ignored)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/164913
Approved by: https://github.com/oulgen
2025-10-08 07:27:17 +00:00
Lucas Kabela
4d5f92aa39
typing tvm.py ( #160369 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/160369
Approved by: https://github.com/Skylion007
ghstack dependencies: #160362 , #160363 , #160364 , #160365 , #160366 , #160367 , #160368
2025-08-15 02:09:31 +00:00
Oguz Ulgen
d1947a8707
Migrate from lru_cache to cache ( #155613 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/155613
Approved by: https://github.com/ezyang
ghstack dependencies: #155612
2025-06-11 19:44:18 +00:00
Raymond Li
21c2565f35
Document dynamo ( #146736 )
...
Many files in dynamo are currently lacking file/module-level documentation, which makes it hard to know what they do at a glance and without digging into the code. This fixes that.
Note: documentation was AI-generated and could be incorrect, please review carefully.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/146736
Approved by: https://github.com/jansel , https://github.com/StrongerXi , https://github.com/anijain2305 , https://github.com/zou3519
2025-02-13 00:02:21 +00:00
Yuanjing Shi
117b6c3e2c
[Easy][Dynamo][TVM] remove unnecessary prints ( #142445 )
...
This PR intends to remove the unnecessary prints in the auto-scheduler of dynamo's TVM backend.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/142445
Approved by: https://github.com/jansel
2024-12-10 19:52:02 +00:00
Xuehai Pan
e74ba1b34a
[BE][Easy][15/19] enforce style for empty lines in import segments in torch/_d*/ ( #129767 )
...
See https://github.com/pytorch/pytorch/pull/129751#issue-2380881501 . Most changes are auto-generated by linter.
You can review these PRs via:
```bash
git diff --ignore-all-space --ignore-blank-lines HEAD~1
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/129767
Approved by: https://github.com/anijain2305
2024-07-31 21:18:11 +00:00
Masahiro Hiramori
5e7377e044
[Dynamo][TVM] Make the opt_level parameter adjustable ( #127876 )
...
Fixes #127874
Pull Request resolved: https://github.com/pytorch/pytorch/pull/127876
Approved by: https://github.com/jansel
2024-06-09 21:38:00 +00:00
Masahiro Hiramori
e8670f6aea
[Dynamo][TVM] Support macOS and Linux/aarch64 platforms ( #128124 )
...
Fixes #128122
With this fix, I've confirmed that the repro works on the platforms below.
- macOS 14.5 (arm64)
- Ubuntu 20.04.6 LTS (GNU/Linux 5.10.120-tegra aarch64)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/128124
Approved by: https://github.com/malfet
2024-06-06 19:47:11 +00:00
Masahiro Hiramori
e216df48c8
[Dynamo][TVM] Fix ignored trials argument for MetaSchedule ( #127747 )
...
Fixes #127746
Pull Request resolved: https://github.com/pytorch/pytorch/pull/127747
Approved by: https://github.com/jansel
2024-06-04 06:13:02 +00:00
Masahiro Hiramori
10a5c1b26c
[Dynamo][TVM] Fix tvm backend interface ( #126529 )
...
Fixes #126528
The repro in the above issue works fine with this PR.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/126529
Approved by: https://github.com/xmfan
2024-05-21 23:31:15 +00:00
Edward Z. Yang
d03173e88c
Unify MYPYINDUCTOR and MYPY ( #118432 )
...
The original motivation for MYPYINDUCTOR was a faster type checking configuration that only checked a subset of files. With the removal of `follow_imports = ignore`, we are now able to use dmypy to do fast incremental typechecking, eliminating the need for this.
Perhaps erroneously, when I tee'ed up this PR I elected to delete the `follow_imports = skip` designations in the mypy-inductor.ini. This lead to a number of extra type error suppressions that I manually edited. You will need to review.
Signed-off-by: Edward Z. Yang <ezyang@meta.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/118432
Approved by: https://github.com/Skylion007
ghstack dependencies: #118414 , #118418
2024-01-27 17:23:20 +00:00
YJ Shi
72daadef2c
[dynamo] Explicitly fall back to eager with GraphModule with no output for onnx&tvm backends ( #99805 )
...
Fixes #99437
Pull Request resolved: https://github.com/pytorch/pytorch/pull/99805
Approved by: https://github.com/jansel
2023-04-23 06:59:00 +00:00
Edward Z. Yang
b09722f540
Convert logging f-strings to use % format, part two ( #98700 )
...
This hits multi-line logging strings
Signed-off-by: Edward Z. Yang <ezyang@meta.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/98700
Approved by: https://github.com/voznesenskym
2023-04-10 12:19:31 +00:00
YJ Shi
a10897a344
[Dynamo] Fix number of inputs in onnxrt and tvm backend ( #95429 )
...
This PR intends to fix #95428 by only binding active inputs to onnxrt's inference session and tvm's runtime lib after model conversion.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/95429
Approved by: https://github.com/jansel
2023-03-04 18:14:53 +00:00
Jason Ansel
5f4fec7459
Fix/refactor dynamo tvm backend ( #93870 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/93870
Approved by: https://github.com/shingjan , https://github.com/desertfire
2023-02-03 21:48:31 +00:00