python - How to manually implement padding for pytorch convolutions - Stack Overflow
Why isn't RandomCrop inserting the padding in pytorch? - vision - PyTorch Forums
Inconsistent behavior between torch.nn.functional.pad and torchvision.transforms.functional.pad when setting padding to be an eight-element lists · Issue #72394 · pytorch/pytorch · GitHub