Hi @Rashmi11
Refrain from posting any grade cell codes in future. It is against community guidelines and continuing to do so can affect your use of discourse community.
- Your scores code recall requires you to mention v2 before v1.
- your compute tf.maximum among 0.0 and A as well as for B is incorrect. Read the instructions carefully again. it first mentions you subtracts margin-positive and then that value to be added to mean_negative for A and in case of B margin-positive and then added to closest negative. Here using tuple plays a major significant role for getting the correct value of triplet_loss1 and triplet_loss2
Regards
DP