Course 4 week 2 assignment 1 assertion error

Hi All,

I am creating blocks for res net. I am getting assertion error and message asks to check for padding and strides. I am using strides of (1,1) and padding as valid, same and valid for first, second and third main path.

That sounds correct as far as it goes. This whole assignment is an excruciating exercise in “proof-reading”. Have you also checked the kernel sizes? Did you specify the “training” parameter on your BatchNorm calls? They give you a worked example of the BatchNorm in the first layer. Yours should look the same.

I figured out, For one of the layers, I was not using ‘f’ for kernel_size and I was just using 1. Changing it to argument f, fixed the error