ValueError: operands could not be broadcast together with shapes (2,2,4) (8,)
I have understood the values in a_slice_prev are not equal in weights values but the size of the input is not in control of conv_single_step function , if any one can help in person that would be mostly helpful as i cannot paste the solution in discord channel
It’s not necessarily a bug, but why are you manually writing out the logic for padding the A value? You already wrote a function to do that, right?
Your vert_start and vert_end logic is incorrect. You did not take the stride into account, but there’s also a misunderstanding about how ranges and indexing work in python: everything is 0-based, right? So the end index on a range should not be decremented: python does that for you already. The same problem exists for the horizontal ranges as well.
As a general matter, it’s not supposed to be our job to write the code for you. Please don’t post your code and say “please fix it for me”. If we need to see your code in order to help, we will ask privately by DM.