`torch.cumprod` / `torch.cumsum` / `torch.sort` kill the Python process with SIGABRT on MPS for tensors with `ndim > 4` and `dim < ndim - 4`
May 22, 2026 · #184844
Python
Difficulty: Medium
Labels
triage review module: crash module: error checking module: sorting and selection module: reductions
Parent Repository
pytorch/pytorch
Python repository
100,083 27,851
Ready to work on this? Walk through the full fork-to-PR workflow so your first contribution goes smoothly.