Fix a high priority bug with the masking system which was introduced in the switch to reconstructors classes

This commit is contained in:
levita_a committed 2025-10-24 15:11:46 +02:00
1 parent fbfbf4fa87
commit e38ebd7372
2 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -190,7 +190,7 @@ class Reconstructor:
sim_patterns = self.model.forward(*inp)
# Calculate the loss
if hasattr(self, 'mask'):
if hasattr(self.model, 'mask'):
loss = self.model.loss(pats,
sim_patterns,
mask=self.model.mask)