Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/cunn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoumith Chintala <soumith@gmail.com>2017-06-07 06:31:54 +0300
committerGitHub <noreply@github.com>2017-06-07 06:31:54 +0300
commit3087b8786be61c04270330b8fc2c628690ee0d0c (patch)
tree2fac1f239c2f036256665d5328acb76d9a90c1e3
parent8e3364c64aa85e7ab4970c8d5f6a4f18d0c3eeae (diff)
parenta55fb7342224f8663197a5e2fcc65489583f5b3c (diff)
Merge pull request #470 from qqning/master
Fix the mix-up of height and width on depth-wise convolution
-rw-r--r--lib/THCUNN/generic/SpatialDepthWiseConvolution.cu2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/THCUNN/generic/SpatialDepthWiseConvolution.cu b/lib/THCUNN/generic/SpatialDepthWiseConvolution.cu
index 2520ff4..5da6570 100644
--- a/lib/THCUNN/generic/SpatialDepthWiseConvolution.cu
+++ b/lib/THCUNN/generic/SpatialDepthWiseConvolution.cu
@@ -232,7 +232,7 @@ void THNN_(SpatialDepthWiseConvolution_updateOutput)(
THCTensor_(free)(state, _bias);
// Transpose output
- THCTensor_(resize4d)(state, output, batchSize, nInputPlane * nOutputPlane, outputWidth, outputHeight);
+ THCTensor_(resize4d)(state, output, batchSize, nInputPlane * nOutputPlane, outputHeight, outputWidth);
// Make a contiguous copy of output (OPTIONAL)
// THCTensor *_output = THCTensor_(newContiguous)(state, output);