I have completed the assignment 100% and submitted 4 times but it failed and gavee a grade of 0%.
Is there a problem with the grader?
Please advise.
Thanks
I have completed the assignment 100% and submitted 4 times but it failed and gavee a grade of 0%.
Is there a problem with the grader?
Please advise.
Thanks
I just tried again and it worked for me:
Note that just passing the tests in the notebook never guarantees full points from the grader. It is a necessary, but not sufficient, condition, as the mathematicians would say.
If you get 0 points for everything, there is probably some structural problem, e.g. the code doesn’t compile because your code is not general enough. The first thing to do is click “Show grader output” and show us the screen shot (as above).
Hi Paul,
Here’s the screenshot of the submission error. It says function square is not available in torch. But it is. So, I’m puzzled.
penalty = torch.mean(torch.square(gradient_norm - 1))
Maybe the grader expects another function, I dont remember the labs at this specialisation but maybe try using torch.pow(x, 2)!
I replaced torch.square with **2 and it passed the grader. The grader should have accepted torch.square
This is another case where for some unknown reason, they use a different version of torch in the assignment notebook than in the grader. Apparently the grader uses an older version that does not support torch.square
as a function. Why they would do that is a mystery.
There’s another such “versionitis” issue described on this thread having to do with the behavior of torch.cat
.