Hello all,

Can someone assist me with my code please ?

*{moderator edit - solution code removed}*

Hello all,

Can someone assist me with my code please ?

*{moderator edit - solution code removed}*

Your slicing of the weights and biases is not correct.

You need to use the stride in computing the horizontal and vertical start (ed: corrected error, used to be “end”) indices.

Please don’t post your code on the Forum. That breaks the course Honor Code.

Thanks TMosh, I think I have managed to solve the slicing problem, However I struggle to correctly define the horizontal and vertical indexes. I just considered multiplying the stride and the corresponding for loop variable to define the start of horiz_start (like h*stride) and vert_start; And adding the stride, loop variable and the filter size to define the end (like h + f + stride). I am getting the following error message.

The only difference between the start and the end is adding ‘f’.

( I have corrected the error in my previous post).