AssertionError: Wrong shape: (4, 7, 7, 2) != (4, 9, 9, 2)

The code:
{moderator edit - solution code removed}

Please let me know where I am going out . if possible please share the correct solution at
eeshan1012@gmail.com.

The problem is that you are hard-coding the padding to be 2, regardless of what argument is passed in. Where does it say that the padding is always 2? That is why the test case fails, because it is passing in the value 3.

So what needs to be done?

You are implementing a function, right? It takes arguments which tell you what to do. Look at the arguments that are defined for this function. How do you know how much padding is requested by looking at the arguments?

The other point here is that you are asking people to just email you the correct solution. Please realize that is a violation of the rules of the course: the Honor Code says that each student is only supposed to submit their own work.

We are here to help you if you have questions, but we will try to give advice and explanations. Not to actually write the correct code for you: that’s your job.

1 Like