diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/NEON/kernels/NECol2ImKernel.cpp | 1 | ||||
-rw-r--r-- | src/core/NEON/kernels/NEIm2ColKernel.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/core/NEON/kernels/NECol2ImKernel.cpp b/src/core/NEON/kernels/NECol2ImKernel.cpp index b9c7a9ac3b..bb8e758b78 100644 --- a/src/core/NEON/kernels/NECol2ImKernel.cpp +++ b/src/core/NEON/kernels/NECol2ImKernel.cpp @@ -44,6 +44,7 @@ TensorShape get_output_shape(const ITensorInfo *input, const Size2D &convolved_d output_shape.set(0, convolved_dims.width); output_shape.set(1, convolved_dims.height); output_shape.set(2, input->tensor_shape()[0]); + output_shape.set(3, input->tensor_shape()[3]); // For NEON the batch size is on the fourth dimension of the input tensor return output_shape; } diff --git a/src/core/NEON/kernels/NEIm2ColKernel.cpp b/src/core/NEON/kernels/NEIm2ColKernel.cpp index 16525ac22e..61010711a6 100644 --- a/src/core/NEON/kernels/NEIm2ColKernel.cpp +++ b/src/core/NEON/kernels/NEIm2ColKernel.cpp @@ -60,7 +60,7 @@ Status validate_arguments(const ITensorInfo *input, const ITensorInfo *output, c } else if(!is_fully_connected) /* Called by ConvolutionLayer */ { - expected_output_shape = misc::shape_calculator::compute_im2col_conv_shape(input, kernel_dims, conv_info, has_bias, dilation); + expected_output_shape = misc::shape_calculator::compute_im2col_conv_shape(input, kernel_dims, conv_info, has_bias, dilation, false); } else /* Called by FullyConnectedLayer */ { |