(self, loss: Loss, mode: str, intraview_negs: bool = False, **kwargs)
| 38 | |
| 39 | class DualBranchContrast(torch.nn.Module): |
| 40 | def __init__(self, loss: Loss, mode: str, intraview_negs: bool = False, **kwargs): |
| 41 | super(DualBranchContrast, self).__init__() |
| 42 | self.loss = loss |
| 43 | self.mode = mode |
| 44 | self.sampler = get_sampler(mode, intraview_negs=intraview_negs) |
| 45 | self.kwargs = kwargs |
| 46 | |
| 47 | def forward(self, h1=None, h2=None, g1=None, g2=None, batch=None, h3=None, h4=None, |
| 48 | extra_pos_mask=None, extra_neg_mask=None): |
nothing calls this directly
no test coverage detected