from local

This commit is contained in:
dohe0342 2022-12-30 16:21:10 +09:00
parent a727312981
commit a90dfb790d
3 changed files with 0 additions and 1 deletions

Binary file not shown.

View File

@ -41,7 +41,6 @@ class TransformerEncoderAdapter(TransformerEncoder):
for p in self.adapters.parameters():
#p.data = nn.Parameter(torch.zeros(p.size()).to('cuda'))
p.data = nn.Parameter(torch.randn(p.size()).to('cuda')/100.)
print(p)
def forward(self, x, padding_mask=None, layer=None, tgt_layer=None):
x, layer_results = self.extract_features_with_adapter(