from local

This commit is contained in:
dohe0342 2023-04-26 14:56:52 +09:00
parent b8a1d07ef4
commit 4f8dc01c2f
2 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ class Transducer(nn.Module):
new_emb = torch.empty(512, 50)
for i in range(512):
mean, std = statistic[i].strip().split(' ')
new_emb[i] = torch.normal(float(mean), float(std), size=50).squeeze()
new_emb[i] = torch.normal(float(mean), float(std), size=(50)).squeeze()
new_emb = new_emb.transpose(1,0)
self.prompt = torch.nn.Parameter(new_emb)
print(self.prompt)