PyTorch CUDA bounds bugs and small nn notes
Two PyTorch reports describe CUDA kernels that can read out of bounds, one where the CPU path raises and one on extreme upsample inputs. Lower-signal notes cover a functorch interpreter check and a draft change to keep exact max norms during renormalization.
CUDA index_select skips bounds checks
PyTorch issue 206100 reports that index_select on CUDA silently accepts out-of-bounds indices while the CPU implementation raises RuntimeError. The gap is a potential out-of-bounds read. Code that relies on the CPU error to reject bad indices will not get the same check on CUDA.
upsample_trilinear3d CUDA reads past bounds
Issue 206078 is a single-message report of CUDA out-of-bounds reads in aten::upsample_trilinear3d. The case uses a 5-D tensor whose self value is about 4.14e+16, together with a recorded parameter combination that includes a negative scale. It is a narrow reproducer, but it flags another CUDA op that misbehaves on extreme inputs.
functorch alive-check suggestion
Issue 203258 is a lone suggestion to replace a token hack with a C++ Interpreter::is_alive() binding in functorch. No further discussion is attached to the proposal.
Draft to keep exact max norms
Draft pull request 204132 asks for early review of a change that would preserve exact max norms during renormalization. The request covers CPU, CUDA, and MPS.