Week 4 Assignment 1 Ex 1 triplet loss


I got this bug and I dont know how to fix
this is my code
{moderator edit - solution code removed}

can anyone help me with this

Hi TienTheShy,

Look carefully at the documentation of tf.subtract. Can you spot the problem? Good luck!

1 Like

Exactly. You have used both tf.subtract and “-”. You only need one of the two.