Week 2 Residual Networks , ex2

I followed the instructions, but the response is still :

"AssertionError Traceback (most recent call last)
15 assert type(A) == EagerTensor, “Use only tensorflow and keras functions”
16 assert tuple(tf.shape(A).numpy()) == (3, 2, 2, 6), "Wrong shape. "
—> 17 assert np.allclose(A.numpy(), convolutional_block_output1)
18 print(A[0])
19 print(’\033[92mAll tests passed!’)


I am looking for the nature of the errors

Hi Ouwayss,

The assertion error indicates that the value of convolutional_block_output1 is incorrect. If this doesn’t help you enough, don’t hesitate to be more specific. Good luck!

Thanks, I found the error ! Instead of passing X_shortcut I pass X in F3 filter of the shortcut path

1 Like