Understanding Contrastive Loss