Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve im2col for certain cases (pytorch#715)
Summary: Pull Request resolved: pytorch#715 Copy across pixels along width dim for im2col. This should help convolution with small number of input channels. Copy across pixels of input width if we can. We can only do this if the following conditions are met. 1) If the number of groups is 1. For number of groups > 1, im2col doesn't copy data across groups. 2) If dilation is 1. For dilation > 1, copying from input across channels is not sequential. 3) For copy from the last channel (end of filter or end of image width) for the current filter, only copy if we have enough in the current channel. Reviewed By: jspark1105 Differential Revision: D31227743 fbshipit-source-id: f331071e6939781e092ed912f6d69247f93aafc9
- Loading branch information