`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
View on GitHub
Python Difficulty: Medium

Labels

module: docs module: nn module: error checking triaged enhancement
Ready to work on this? Walk through the full fork-to-PR workflow so your first contribution goes smoothly.

Sign in required

Authenticate to use favourites & bookmarks

5