Hi, first of all thank you for replying!
Actually in this code I get the error even when executing it (no debug). It’s a part of a bigger code with combined loss of 2 loss function, one of them is the triplet loss. In the other code I get this kind of error only in debug after one batch…