lol, I think I helped design it, and I think it looks clowntown from the lens of Tensor padding. F.pad was written as a consolidation of all the vision padding — for padding images, videos, etc. It consolidated nn.ReflectionPad2d, etc. from torch7. But looking at it from the
PyTorch F.pad Tensor Padding API Design Discussion
By
–
Leave a Reply