C3W3 course Exercise 02

C3W3 course Exercise 02.
please fix the issue…

use tf.math.reduce_sum on negative_zero_on_duplicate for axis=1 and divide it by (batch_size - 1)

mean_negative =  tf.reduce_sum(negative_zero_on_duplicate, axis=0) / (batch_size - 1)

I’m not receiving the right response when I use axis = 1, despite the instructions saying to use axis = 1.when axis = 0 to zero was applied. I have the right response. Kindly correct the instructions.

Hi!

You should be receiving the correct output with axis=1. Are you sure you are doing the matmul correctly like so V_2V_1^T as given in the instructions and NOT V_1V_2^T ?

Did you also pass your unit test for TripetLoss?