Unknown Error C1W3_Assignment

Getting this error after adding layers in sequential and trying to run the test:
ValueError: You tried to call count_params on layer sequential, but the layer isn’t built. You can build it manually via: sequential.build(batch_input_shape).
Please help.

Giving input shape to the first convolution layer fixed it.