Aaron Gokaslan
e738f7ba23
[BE]: Enable ruff rule SIM113 ( #147290 )
...
Lint rules that tells the user to avoid keeping track of their own counter and use the builtin enumerate when possible.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/147290
Approved by: https://github.com/jansel
2025-02-16 22:41:16 +00:00
Xuehai Pan
c0ed38e644
[BE][Easy][3/19] enforce style for empty lines in import segments in benchmarks/ ( #129754 )
...
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/129754
Approved by: https://github.com/ezyang
2024-07-17 14:34:42 +00:00
Justin Chu
5ef023b05a
[BE] Enable ruff's UP rules and autoformat benchmarks/ ( #105429 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/105429
Approved by: https://github.com/malfet
2023-07-19 04:46:37 +00:00
BowenBao
60a68477a6
Bump black version to 23.1.0 ( #96578 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/96578
Approved by: https://github.com/ezyang
2023-03-15 06:27:59 +00:00
Edward Z. Yang
b8151d2ba9
Utility for running delta comparisons between two flag configs ( #95411 )
...
Signed-off-by: Edward Z. Yang <ezyang@meta.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/95411
Approved by: https://github.com/Chillee
2023-02-25 02:30:22 +00:00
Edward Z. Yang
1d53123f44
Report graph breaks separately from graph count ( #94143 )
...
graph break != graph count - 1. Suppose you have a nested
inline function call f1 to f2 to f3. A graph break in f3
results in six graphs: f1 before, f2 before, f3 before, f3 after,
f2 after, f1 after.
Signed-off-by: Edward Z. Yang <ezyang@meta.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/94143
Approved by: https://github.com/voznesenskym
2023-02-05 04:03:12 +00:00
Edward Z. Yang
a2db70b3c7
Add graphs/ops to parse_logs.py ( #94138 )
...
Also remove broken stats parsing logic.
Signed-off-by: Edward Z. Yang <ezyang@meta.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/94138
Approved by: https://github.com/voznesenskym
2023-02-05 04:03:12 +00:00
Michael Voznesensky
d322f82b05
Add @count util to torch, use it to track benchmark stats ( #93013 )
...
<img width="1333" alt="image" src="https://user-images.githubusercontent.com/4755252/214687911-f766f072-c162-4298-9aed-c889f1375336.png ">
Pull Request resolved: https://github.com/pytorch/pytorch/pull/93013
Approved by: https://github.com/ezyang
2023-01-26 03:09:12 +00:00
Michael Voznesensky
fb776a2df1
Fix mistaken script merge (by me) ( #92756 )
...
Fixes #ISSUE_NUMBER
Pull Request resolved: https://github.com/pytorch/pytorch/pull/92756
Approved by: https://github.com/Chillee
2023-01-21 22:19:02 +00:00
Michael Voznesensky
5778c04a15
Add --timing flag, phase timing to @dynamo_timed ( #92637 )
...
Ex output:
```
TIMING:
entire_frame_compile:8.574629999999999
backend_compile:5.26806
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/92637
Approved by: https://github.com/ezyang
2023-01-21 10:52:13 +00:00
Edward Z. Yang
3481ad3365
Make log parser work on inference runs too ( #92546 )
...
Signed-off-by: Edward Z. Yang <ezyang@meta.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/92546
Approved by: https://github.com/albanD
2023-01-18 20:57:52 +00:00
Edward Z. Yang
1d47c59384
Check in some utility scripts for running dynamic shapes sweeps ( #92256 )
...
Signed-off-by: Edward Z. Yang <ezyang@meta.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/92256
Approved by: https://github.com/albanD
2023-01-17 16:37:13 +00:00