chore(pre-commit): Update plugin versions and rerun all files

This commit is contained in:
Alexander Engelsberger
2021-10-13 10:54:53 +02:00
parent a8829945f5
commit d4448f2bc9
4 changed files with 7 additions and 6 deletions

View File

@@ -131,7 +131,7 @@ class SiameseGLVQ(GLVQ):
def compute_distances(self, x):
protos, _ = self.proto_layer()
x, protos = [arr.view(arr.size(0), -1) for arr in (x, protos)]
x, protos = (arr.view(arr.size(0), -1) for arr in (x, protos))
latent_x = self.backbone(x)
self.backbone.requires_grad_(self.both_path_gradients)
latent_protos = self.backbone(protos)

View File

@@ -1,4 +1,4 @@
class ProtoTorchMixin(object):
class ProtoTorchMixin:
"""All mixins are ProtoTorchMixins."""
pass