`torch.nn.functional.pad` raises `NotImplementedError` for valid `(ndim, pad_size)` combinations in non-constant modes — constraint not documented in the API
May 22, 2026 · #184845
Python
Difficulty: Medium
Labels
module: docs module: nn module: error checking triaged enhancement
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.