Trouble with PyTorch docs
4 posts from 3 people3d activeRising, +3 this week
Posts per day
The posts behind it
[docs] Missing imports and a doctest continuation error in torch examples
Five docstring examples raise NameError and one raises IndentationError when run as written, e.g. when copy-pasted from the docs pages: - torch.as_tensor / torch.asarray / torch.from_numpy: the examples use `numpy.array` / `numpy.float64` without importing numpy. - torch.exp:...
[docs] Broken docstring examples in torch.fft, torch.linalg and torch.special
Several docstring examples raise NameError or TypeError when run as written, e.g. when copy-pasted from the docs pages: - torch.fft.ihfft2 / torch.fft.ihfftn: the examples reference `t` before defining it (and an undefined `rfftn` in ihfft2). - torch.linalg.solve_ex: the example...
[Docs] Clarify UTF-8 / Vietnamese text handling in DataLoader and tokenization pipeline
...DataLoader on Windows Vietnamese file paths (containing diacritics) can cause issues with `num_workers > 0` on some platforms. ## Proposed Documentation Addition A note in the DataLoader tutorial and the text utilities section covering: - Best practices for non-ASCII...
[docs] Worker.__init__ docstring documents a nonexistent `id` argument
### 🐛 Describe the bug In `torch/distributed/elastic/agent/server/api.py`, the `Worker` class docstring lists `id (Any)` under its `Args:` block, but `Worker.__init__` does not accept an `id` argument. It only takes the rank and world-size ints, and `self.id` is set internally...
Companies and products named
About this problem
Evidence
4 posts from 3 people in 1 place, about 1 a week over 27 days. Mostly on pytorch/pytorch. Tools named alongside: GitHub, Text.
Frustration Frustration 0 of 3· Seen on GitHub issues
How it was grouped
Posts about PyTorch with no known issue, sharing the word "docs". First post Sep 30, 2026, latest Oct 26, 2026. Corroborated: 3 or more posts from 2 or more people or places. Method
Other PyTorch problems
PyTorch users keep filing bugs
Top post: "Meta-issue: torch.compile gaps found via the CPython test suite", one of 43 posts from 34 people on GitHub issues, Reddit.
Trouble with PyTorch inductor
Top post: "`[Inductor][CPU] torch.var returns NaN for large-magnitude constant float64 inputs while eager returns 0`", one of 11 posts from 8 people on GitHub issues.
PyTorch GPU access and drivers are painful
9 posts from 9 people on GitHub issues.
PyTorch builds are slow or flaky
8 posts from 1 person on GitHub issues. Unverified.
Trouble with PyTorch input
Top post: "Generation crashes with encoder_repetition_penalty when encoder_outputs are provided without input_ids", one of 6 posts from 6 people on GitHub issues.
PyTorch deprecations force unplanned migrations
5 posts from 4 people on GitHub issues.
Running PyTorch locally hits memory and speed limits
4 posts from 4 people on GitHub issues, Hacker News.
Trouble with PyTorch true
Top post: "torch.cuda.memory_snapshot() drops a reference to True on every call and aborts Python < 3.12 (fix #199044", one of 4 posts from 4 people on GitHub issues.
PyTorch lock-in makes switching costly
3 posts from 3 people on GitHub issues.
Trouble with PyTorch drops
Top post: "constant-False cond_fn drops captured-tensor mutations", one of 3 posts from 3 people on GitHub issues.
Trouble with PyTorch torch
Top post: "5.19.0: models cannot be imported on torch 2.5, or on torch 2.6 without an accelerator (get_device_type calls", one of 3 posts from 3 people on GitHub issues.
PyTorch vulnerabilities are hard to triage and patch
3 posts from 3 people on Glyph Ibis.
History