C4W2 - Alpacas -- Missing a layer

So I think I am almost there on exercise 2–

But also a little stumped at the moment.

The grader tells me I am missing a layer-- So using the trick we are shown earlier in the lesson I modified the supplied code slight to find out ‘which layer is it’ ?

And so in this case we get to ‘see’ what the grader is looking for obviously is my Sequential layer (which must be data_augmenter)-- Yet I pass all the tests for that earlier function, and of course I include a reference to it in the model.

Thus I’m not sure what I might be doing wrong/missing here, or why it isn’t returning that sequential layer to me ?

Try using the data_augmentation() function pointer.

1 Like

@TMosh I’ve tried that, and a couple of other ways, but still get only the previous model summary and this from the grader:

I mean the key thing is we have to make sure we are applying it on the inputs.

The model will still run– But I think then it would be missing something. Unless the grader is wrong.

The grader isn’t wrong.

I found my mistake–

Just to share it was how I was handling the code for this instruction:

# data preprocessing using the same weights the model was trained on

I was thinking through too much the ‘using the same weights the model was trained on’.

It is working now.

2 Likes