Error in ResNet50 comparator

Test failed
Expected value

[‘Conv2D’, (None, 4, 4, 256), 262400, ‘valid’, ‘linear’, ‘RandomUniform’]

does not match the input value:

[‘Conv2D’, (None, 4, 4, 265), 271625, ‘valid’, ‘linear’, ‘RandomUniform’]

AssertionError Traceback (most recent call last)
3 model = ResNet50(input_shape = (64, 64, 3), classes = 6)
----> 5 comparator(summary(model), ResNet50_summary)

/tf/W2A1/ in comparator(learner, instructor)
21 “\n\n does not match the input value: \n\n”,
22 colored(f"{a}", “red”))
—> 23 raise AssertionError(“Error in test”)
24 print(colored(“All tests passed!”, “green”))

AssertionError: Error in test

Looks like you have a typo in one of your “channel” shapes on one of the layers. You wrote 265 when you meant 256. It should be pretty easy to find. Use the browser “in tab” search function. There should not be any other instances of 265 to find. Or if you find more, those are probably wrong, too. :nerd_face:

1 Like