I am getting error in the conv_block, I can not figure out where the problem is. I am including a copy of the script and the error messages, please help me to find out the problem. Thanks
Donāt use hard-coded values unless youāre told to specifically.
So, donāt use 32, use ān_filtersā.
Check for those types of problems.
Also, please edit your message and remove the code. Posting your code breaks the course Honor Code.
Also, instead of posting your code, just post any error messages you get from the unit tests.
Those are usually enough to point to the problem in your code.
Thanks. I will try to edit the message.
You should have a āpencilā icon in the toolbar below your message. Thatās the āeditā tool.
If you donāt see it, let me know and I can edit your message.
Thanks Mosh for the suggestions. I removed the code as you suggested.
The error is as following:
Test failed
Expected value
[āConv2Dā, (None, 96, 128, 1024), 28672, āsameā, āreluā, āHeNormalā]
does not match the input value:
[āConv2Dā, (None, 96, 128, 32), 896, āsameā, āreluā, āHeNormalā]
Most likely, in the first Conv2D layer, either your āfilters=ā¦ā argument is wrong, or your ākernel_size=ā¦ā is wrong.
Be sure you use the identifiers for the arguments, because if you leave them out, youāre just relying on getting them in exactly the correct order.
Another problem might be with embedding comments inside the argument definition. Try taking those out.
This was also asked and answered on this other parallel thread. The bug is that you must be hard-coding the value of the number of filters to 32 instead of using the parameter that was passed in.
Oh, sorry, I see that @TMosh already also gave this answer earlier on this thread. So itās been covered!
Note also that in the āconv10 = ā¦ā layer, you donāt use n_filters there.