disabled_train is set later

This commit is contained in:
rromb 2022-05-31 14:18:01 +02:00
parent 0aa5027fdc
commit 07ebb8fb2a

View file

@ -119,7 +119,7 @@ class FrozenT5Embedder(AbstractEncoder):
def freeze(self): def freeze(self):
self.transformer = self.transformer.eval() self.transformer = self.transformer.eval()
self.train = disabled_train #self.train = disabled_train
for param in self.parameters(): for param in self.parameters():
param.requires_grad = False param.requires_grad = False
@ -148,7 +148,7 @@ class FrozenCLIPEmbedder(AbstractEncoder):
def freeze(self): def freeze(self):
self.transformer = self.transformer.eval() self.transformer = self.transformer.eval()
self.train = disabled_train #self.train = disabled_train
for param in self.parameters(): for param in self.parameters():
param.requires_grad = False param.requires_grad = False