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

Marcus Edel notifications at github.com
Sun Aug 14 12:24:53 EDT 2016


> @@ -126,7 +132,11 @@ class ConvLayer
>          BackwardConvolutionRule::Convolution(gy.slice(inMap), rotatedFilter,
>              output);
>  
> -        g.slice(outMap) += output;
> +        if (wPad != 0 || hPad != 0)

The gradient isn't set if ``(wPad != 0 || hPad != 0)`` isn't true. In case ``(wPad != 0 || hPad != 0)``is false the gradient is the output value.

-- 
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/fa64b08e083d6b0122c05ee96ca99af14cc0cc76#r74704656
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160814/e44a1497/attachment.html>


More information about the mlpack-git mailing list