Fix ImageCBC bug

This commit is contained in:
Jensun Ravichandran 2021-05-21 13:11:36 +02:00
parent 88a34a06ef
commit 0933a88a1b

View File

@ -153,4 +153,4 @@ class ImageCBC(CBC):
"""
def on_train_batch_end(self, outputs, batch, batch_idx, dataloader_idx):
# super().on_train_batch_end(outputs, batch, batch_idx, dataloader_idx)
self.component_layer.prototypes.data.clamp_(0.0, 1.0)
self.component_layer.components.data.clamp_(0.0, 1.0)