We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1ef6fe commit bed632cCopy full SHA for bed632c
shimmer/modules/losses.py
@@ -405,6 +405,8 @@ def __init__(
405
self.domain_mods = domain_mods
406
self.loss_coefs = coef_buffers
407
self.var_contrastive_loss = var_contrastive_loss
408
+
409
+ self.contrastive_fn: ContrastiveLoss | ContrastiveLossWithUncertainty
410
if self.var_contrastive_loss:
411
self.contrastive_fn = ContrastiveLossWithUncertainty(
412
torch.tensor([1]).log(), "mean"
0 commit comments