Circular Convolution Function via circular padding (#17240)
authorNarine Kokhlikyan <narine@fb.com>
Mon, 18 Mar 2019 19:21:52 +0000 (12:21 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 18 Mar 2019 19:33:20 +0000 (12:33 -0700)
commit670f509984efce8aab0b0b5b166ff01472af6f1c
tree2e08299b465ce4de367a24c16b65570786e00f82
parent2b7a5d1876c2a34da6d16e843ddb429493bd666e
Circular Convolution Function via circular padding (#17240)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17240

Added circular padding in addition to zero padding to Conv1D, Conv2D and Conv3D based on the solution suggested in: https://github.com/pytorch/pytorch/issues/3858

Reviewed By: ezyang

Differential Revision: D14126416

fbshipit-source-id: a2f1587503ee0cfff98d5cb0d5b0a600ef8aaeb4
test/common_nn.py
torch/nn/functional.py
torch/nn/modules/conv.py