Remove unused variable
This commit is contained in:
parent
8403b01081
commit
e8cd4d765c
@ -78,7 +78,6 @@ class ReasoningLayer(torch.nn.Module):
|
||||
def forward(self, detections):
|
||||
pk = self.reasoning_probabilities[0].clamp(0, 1)
|
||||
nk = (1 - pk) * self.reasoning_probabilities[1].clamp(0, 1)
|
||||
epsilon = torch.finfo(pk.dtype).eps
|
||||
numerator = (detections @ (pk - nk)) + nk.sum(1)
|
||||
probs = numerator / (pk + nk).sum(1)
|
||||
probs = probs.squeeze(0)
|
||||
|
Loading…
Reference in New Issue
Block a user