Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error debbuging C4-Week2-Assignment1 #36

Open
BorisMartinez-AI opened this issue Aug 2, 2022 · 0 comments
Open

Error debbuging C4-Week2-Assignment1 #36

BorisMartinez-AI opened this issue Aug 2, 2022 · 0 comments

Comments

@BorisMartinez-AI
Copy link

Hello
In course 4 (ConvNets), Week2, Assignment 1 (ResNets) , section 3.2 (The convolutional block), I did the implementation myself and got an error. When I looked at this solution, I find it exactly the same as mine but gives the same error:

I am getting the following error in the function "convolutional block":


AssertionError Traceback (most recent call last)
Input In [13], in <cell line: 14>()
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])
17 B = convolutional_block(X, f = 2, filters = [2, 4, 6], training=True)

AssertionError: Wrong values when training=False.


Can you please advise?

Thanks,

Boris M.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant