Course 4 week 2 assignment 1 (Wrong values when training=False.)


I can’t figure out why I’m getting “Wrong values when training=False.” in my convolutional_block function. I’ve checked the inputs for all layers in the code multiple times, and everything is according to the problem description. My shortcut path block has X_shortcut inputs on both lines. My code passed the tests perfectly well in the previous version of the course (I had to trim the “names” from the old version of the code for the newer one), so I really have no idea where the error can be… Please help out.


Found the error - I forgot to do the BatchNormalization in the last component of the main path (did “relu” instead).

1 Like

It is great to hear that you found the solution under your own power! Onward! :nerd_face: