I spent hours on this issue , but did not find the error on code.
{moderator edit - solution code removed}
I spent hours on this issue , but did not find the error on code.
{moderator edit - solution code removed}
It is a mistake to include the stride value as a “stride” in the ranges of the h and w loops. What that does is skip positions in the output space, so they end up as zero. The way to think about stride is that it happens in the input space, not the output space. The loops over h, w, and c are covering every position in the output space and you can’t skip any, right?
So take another look at the logic with that idea in mind.
Thanks a lot. Now I fixed the issue.