From a36512f9ee1e4a7f6f800deed219b62a2297a34a Mon Sep 17 00:00:00 2001 From: Paul-Edouard Sarlin Date: Sun, 10 Dec 2023 19:56:03 +0100 Subject: [PATCH] Fix typo --- gluefactory/models/utils/losses.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluefactory/models/utils/losses.py b/gluefactory/models/utils/losses.py index cca17636..06c7958b 100644 --- a/gluefactory/models/utils/losses.py +++ b/gluefactory/models/utils/losses.py @@ -69,5 +69,5 @@ def nll_loss(self, log_assignment, data): weights[:, :m, :n] = positive weights[:, :m, -1] = neg0 - weights[:, -1, :m] = neg1 + weights[:, -1, :n] = neg1 return weights