I am giving dim for weight as num_pxnum_px*3 but it is giving me error for shape why it is like that
You should give dim as dim, not num_px*num_px*3.
2 Likes
Right! The test cases don’t all use data that has the same dimensions as the real image data, so your code needs to use the values that are actually passed in as parameters to your functions.