Commit 9f484ea
Add torchvision as direct dependency for CPU index source to apply
tool.uv.sources only applies to direct dependencies; torchvision was only
a transitive dependency via piq, so sources.torchvision was silently ignored
and PyPI's torchvision was installed instead. PyPI's torchvision registers
torchvision::nms operators that don't exist in CPU-only torch, causing
RuntimeError on import. Making torchvision a direct dependency causes uv
to route it through the CPU index.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 1410e79 commit 9f484ea
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
317 | 318 | | |
318 | 319 | | |
319 | 320 | | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
320 | 324 | | |
321 | 325 | | |
322 | 326 | | |
| |||
0 commit comments