Week 3 aasignment2 ex.1

hi all, I am getting an error in the test for the first exercise conv_block. Block 1 seems correct but something wrong with block2 .

Block 1:
[‘InputLayer’, [(None, 96, 128, 3)], 0]
[‘Conv2D’, (None, 96, 128, 32), 896, ‘same’, ‘relu’, ‘HeNormal’]
[‘Conv2D’, (None, 96, 128, 32), 9248, ‘same’, ‘relu’, ‘HeNormal’]
[‘MaxPooling2D’, (None, 48, 64, 32), 0, (2, 2)]
All tests passed!

Block 2:
[‘InputLayer’, [(None, 96, 128, 3)], 0]
[‘Conv2D’, (None, 96, 128, 32), 896, ‘same’, ‘relu’, ‘HeNormal’]
[‘Conv2D’, (None, 96, 128, 32), 9248, ‘same’, ‘relu’, ‘HeNormal’]
[‘Dropout’, (None, 96, 128, 32), 0, 0.1]
[‘MaxPooling2D’, (None, 48, 64, 32), 0, (2, 2)]
Test failed
Expected value

[‘Conv2D’, (None, 96, 128, 1024), 28672, ‘same’, ‘relu’, ‘HeNormal’]

does not match the input value:

[‘Conv2D’, (None, 96, 128, 32), 896, ‘same’, ‘relu’, ‘HeNormal’]


AssertionError Traceback (most recent call last)
in
30 print(layer)
31
—> 32 comparator(summary(model2), output2)

/tf/W3A2/test_utils.py in comparator(learner, instructor)
17 “\n\n does not match the input value: \n\n”,
18 colored(f"{a}", “red”))
—> 19 raise AssertionError(“Error in test”)
20 print(colored(“All tests passed!”, “green”))
21

AssertionError: Error in test

This is what I am doing:

{moderator edit - solution source code removed}

Thank you for all your help.

You are hard coding the number of filters to be 32 in the calls to Conv2D instead of using the n_filters parameters to determine that. In the first test, the value they pass happens to agree, but in the second it does not.

thank you much solved