Skip to content

Commit bed632c

Browse files
committed
fix: mypy
1 parent d1ef6fe commit bed632c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shimmer/modules/losses.py

+2
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,8 @@ def __init__(
405405
self.domain_mods = domain_mods
406406
self.loss_coefs = coef_buffers
407407
self.var_contrastive_loss = var_contrastive_loss
408+
409+
self.contrastive_fn: ContrastiveLoss | ContrastiveLossWithUncertainty
408410
if self.var_contrastive_loss:
409411
self.contrastive_fn = ContrastiveLossWithUncertainty(
410412
torch.tensor([1]).log(), "mean"

0 commit comments

Comments
 (0)