I have written the code 15 times and could not find the error

It gives me this error

AssertionError Traceback (most recent call last)
in
12 assert type(A) == EagerTensor, “Use only tensorflow and keras functions”
13 assert tuple(tf.shape(A).numpy()) == (3, 2, 2, 6), “Wrong shape.”
—> 14 assert np.allclose(A.numpy(), convolutional_block_output1), “Wrong values when training=False.”
15 print(A[0])
16

AssertionError: Wrong values when training=False.

Which week and assignment?

week 2 assignment 1 I

In the shortcut path, the batch normalization should use X_shortcut, not X.

Please edit your original message and remove the code. This will clear you of the Honor Code (which says students cannot post their code on the Forums).

2 Likes

still its giving me the same error even though I have change to X_shortcut

Hopefully you used “X_shortcut”, not “X_shotcut”.
Be sure you re-run the cell after you modify it.

2 Likes

Thank u for the solution