[mlpack-git] [mlpack/mlpack] fixes: convolve with correct weight slice, pad input in forward pass (#737)

Marcus Edel notifications at github.com
Mon Aug 8 18:54:09 EDT 2016


> @@ -125,8 +131,10 @@ class ConvLayer
>          arma::Mat<eT> output;
>          BackwardConvolutionRule::Convolution(gy.slice(inMap), rotatedFilter,
>              output);
> -
> -        g.slice(outMap) += output;
> +        g.slice(outMap) += output.submat(rotatedFilter.n_rows / 2,

We only have to use submat if ``(wPad != 0 || hPad != 0)``.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/737/files/e8ef7f47ff7d398bd8a7a6982860294a5a468f68#r73971048
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160808/1dc26c45/attachment.html>


More information about the mlpack-git mailing list