But when I run the cell (and test) for this particular function, I get:
I’ve tried restarting kernel and clearing output before submitting; same issue still persists.
This exercise is being updated, because the unit tests to not catch all of the most common possible errors in the scaled_dot_product_attention() function.
Check that you implemented the correct code for when the mask is not “None”.
when the mask is not none, the instruction said to
The boolean mask parameter can be passed in as none or as either padding or look-ahead. Multiply it by -1e9 before applying the softmax.
This is how I interpreted the instruction: the multiplication by -1e9 is supposed to be applied to the mask, not to the entire quantity (before softmax is applied)
if mask is not None:
scaled_attention_logits += (mask*(-1e9))
Similarly, I actually have this as my instruction (after looking up the instruction in your picture. I accessed the programming assignment on June 30th, so I thought I was supposed to have the latest version.
I recommend you open up the new notebook (use the File menu), and copy your code over to the new notebook.
If you don’t have a newer notebook in your File menu, then you should re-name your current notebook (so it doesn’t get overwritten), and use the Help menu to see if there is a new version available.
I see, thankyou! I just re-updated the notebook. Strange that it gave me the old version even though I have never opened this assignment prior to June 30th and that the last update to the assignment was on June 21st.
I got the correct version now and will copy all my code over. Thanks again for the help!
Hi Team, I started a new notebook and got the above error, when following the discord community it is said that the above instructions are old, but I just started a new one (latest version notebook) and got these, what do I do now? any help possible
Hi team, I am facing similar issues. In my case all the test cases are passing in jupiter notebook but still nbgrader is not passing the assignment. Please check the same it has been several weeks I am trying over this assignment.