Programming Assignment - Week 1- conv_forward

No-one except the course staff can directly examine your code. For the first question, the end values are the start values plus the size of the filter in that dimension, right? Of course the filters are f x f x nC_{in}.

Yes, it appears you are “slicing” the W value incorrectly. Note that the inner loop is over the output channels, right? So for each iteration, you pick the W and b “slice” that consists of all of the first 3 dimensions (as shown above) corresponding to the current value of the last dimension, which is output channels.

Here’s an earlier thread that has a nice explanation of all the logic for conv_forward.