Test failed for Convolution_model_Application

Hi, in the second (required) programming exercise of Course 4 of the Deep Learning Specialization, first exercise, my code is:

Moderator Edit: Solution Code Removed

The results is:
[‘ZeroPadding2D’, (None, 70, 70, 3), 0, ((3, 3), (3, 3))]
[‘Conv2D’, (None, 64, 64, 32), 4736, ‘valid’, ‘linear’, ‘GlorotUniform’]
[‘BatchNormalization’, (None, 64, 64, 32), 128]
[‘Activation’, (None, 64, 64, 32), 0]
[‘MaxPooling2D’, (None, 32, 32, 32), 0, (2, 2), (2, 2), ‘valid’]
[‘Flatten’, (None, 32768), 0]
[‘Dense’, (None, 1), 32769, ‘sigmoid’]
Test failed. Your output is not as expected output.
I compared my results with expected results, it is the same.
I wondered why test always failed.
Please help! Thanks!

1 Like

Try Kernel → Restart & Run all.

Thanks! I tried, but it still said the test failed. But it does not matter with the grading system. I passed anyway.

1 Like

Do not post code on public thread it is against community guidelines.

I believe the issue is here:
image

The hint tells you to use a ReLU layer, not an Activation layer with “ReLU”.

They may work the same, but the model summary report will have different text, so that’s why it fails.

The error shows up here:
image

Thank you very much for your reply. The problem now has gone.

1 Like

Thanks for your reminder. Do I need to delete the code?

1 Like

I see, thank you for revising.

1 Like

Yes delete the grader codes. Sharing grader codes is not allowed. Go through once Code of Conduct.

Another mentor has already deleted the code for you.