UNQ_C3: all test cases failing but expected output cell is OKAY!

Hello all,

I Implemented the UNQ_3 function: dot_product_self_attention(q, k, v):

I am finding it really hard to understand what’s going wrong, any help will be greatly appreciated!

I have the following output:

There are two sets of tests. Your code only gives the expected results for one of them.

Thanks @TMosh