disabled_train is set later
This commit is contained in:
parent
0aa5027fdc
commit
07ebb8fb2a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue