C5W4 exercise3 error not showing


It doesn’t show any error message so I don’t know where is the problem :face_with_monocle:

1 Like

Hi @ladan_yang ,

Although there is no explicit error message here, however, the AssertionError is telling you that your code for sacled_do_product_attention() failed because the weights returned did not match those on the right, see line 62 from the output of the unit test.
Getting the correct dk is very important, I can see there is a need for your attention there.

Thank you so much! It is solved now!

In Exercise 3 - scaled_dot_product_attention I am getting an assertion error that shows no difference between my calculated output and the correct output tensor. How would the assertion be False if both my output and the correct output are the same or similar?

It’s a bold move to tag onto a 3 year old thread, but I see that you also created your own new thread about your issue.

1 Like

Yeah Paul. After reading a bit more of directions, I realized I might not get a response from adding to an older thread, so I created a new one.

I’m still having issues though. The description and accompanying Assignment is not well supported in the lesson. I have multiple hours of just trial and error to get the solution but even with assertion errors and rewriting all my code, its seems we are doing python and tensorflow but learning almost nothing about Self-Attention, MH Attention and Transformers. I’d say this is the worst supported Assignment of the 5 courses.

Yes, other students have made similar analyses of this assignment. I will take a more detailed look at your new thread.