~/lightning

Lightning Talk: TorchFix - a Linter for PyTorch-Using Code with Autofix Support

Lightningat PyTorch Conference 2023 · 2023-10-16..10-17· [machine-learning, testing]
slides:none on file

A PyTorch-focused linter with autofix support analyzes code with LibCST to find and rewrite concrete issues: deprecated API moves (torch.symeig→torch.linalg.symeig), the silent typo requires_gr instead of requires_grad, missing DataLoader num_workers, and torchvision’s pretrained→weights change. It runs as autofix via LibCST, either as a flake8 plugin vs standalone --fix mode (flake8 mode lints only), and it already runs in CI on multiple Meta and open‑source repos; current state is early beta with rule opt‑ins.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.