Face_Recognition_Exercise 1 - triplet_loss

hi I am getting below error ,please help me to resolve.

Thank you

Interesting. Well, if you print the types of anchor and positive, it turns out there are a number of different test cases: in some of them they are TF tensors and in others they are lists.

When I wrote this code I used tf.subtract instead of “-” and tf.square instead of **2 and I did not encounter the error you are seeing. Apparently tf.subtract can coerce the lists to tensors, but the overloaded “-” operator does not work that way. The “overloading” logic in that case apparently doesn’t know how to subtract lists.

Thank you sir ,got soluttion