Course 4 week 1 assignment 2 - Exercise 1 : happyModel()

{moderator edit - solution code removed}

“Im getting the error as”:

ValueError: The first argument to Layer.call must always be passed.

Please let me know. what are the mistakes i’m doing here. Kinda new in networks.

The way you are specifying ReLU looks pretty sketchy. Why not just say:

tfl.ReLU(),

It worked for me.

But I have to say that your first Conv2D invocation also looks pretty different than mine. You should just specify the number of filters, the filter shape and the stride. What are all those other parameters?

Also note that they specifically say that the last Dense layer has one unit. Why are you specifying 10 there? One, ten, whatever? :nerd_face: