C4 W4 Assignment 2 marking error?

I’m getting an unexpected error during marking, it seems the automatic grader considered my solution for UNQ_C5 wrong?

Hi @Leo_Chen1,

The autogrder as fine, I doubt it is a marking error. Must be to do something with your code. I’ll DM you regarding it.

Best,
Mubsi

Note that getting passing a test in the notebook does not mean your code is perfect. The grader uses different tests.

Hi @Leo_Chen1,

As you mentioned in the DM to me, your code for Ex 6 (UNQ_C5) was working last night, but not anymore. Not sure how you made it work, but the autograder is rightly not marking your exercise because it is incorrect, as you have seen when you tried running it again and it threw an error.

Instead of finding the style cost, you are finding layer style cost.

Fixing this mistake should make everything else work as well.

Best,
Mubsi