loss = tf.Tensor([ 0. 552.6598 0. ], shape=(3,), dtype=float32)

I have added alpha using tf.add and tf.reduce_sum with axis-1 is getting me the above

## I keep getting the above and then the following Assertion Error:

AssertionError Traceback (most recent call last)

in

14 y_pred_perfect = ([1., 1.], [1., 1.], [1., 1.,])

15 loss = triplet_loss(y_true, y_pred_perfect, 5)

—> 16 assert loss == 5, “Wrong value. Did you add the alpha to basic_loss?”

17 y_pred_perfect = ([1., 1.],[1., 1.], [0., 0.,])

18 loss = triplet_loss(y_true, y_pred_perfect, 3)

AssertionError: Wrong value. Did you add the alpha to basic_loss?