Closed knif-knif closed 5 months ago
utils/funcs.py line 30
return - F.cosine_similarity(p, z.detach(), dim=-1).mean()
It's negative, Should it be
return 1 - F.cosine_similarity(p, z.detach(), dim=-1).mean()
hi, the constant is omitted as it won't affect the gradient.
utils/funcs.py line 30
It's negative, Should it be