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.
TMosh
June 23, 2021, 6:42am
2
Which week and assignment?
TMosh
June 23, 2021, 6:55am
4
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
TMosh
June 23, 2021, 7:58am
6
Hopefully you used “X_shortcut”, not “X_shotcut”.
Be sure you re-run the cell after you modify it.
2 Likes