mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
c39ee49207
commit
9609b959dc
Binary file not shown.
Binary file not shown.
@ -84,10 +84,9 @@ class Transducer(nn.Module):
|
|||||||
print(self.sid)
|
print(self.sid)
|
||||||
print('-'*20)
|
print('-'*20)
|
||||||
if prompt:
|
if prompt:
|
||||||
#self.prompt = torch.randn((200, 512), requires_grad=True)
|
self.prompt = torch.randn((200, 512), requires_grad=True)
|
||||||
#statistic = open(f'/home/work/workspace/icefall/egs/librispeech/ASR/conv_feat/{self.sid}/{sid}_statistic.txt', 'r').readlines()
|
statistic = open(f'/home/work/workspace/icefall/egs/librispeech/ASR/conv_feat/{self.sid}/{sid}_statistic.txt', 'r').readlines()
|
||||||
self.prompt = torch.nn.Parameter(torch.rand((50, 512)))
|
self.prompt = torch.nn.Parameter(torch.rand((50, 512)))
|
||||||
'''
|
|
||||||
print(self.prompt)
|
print(self.prompt)
|
||||||
|
|
||||||
new_emb = torch.empty(512, 50)
|
new_emb = torch.empty(512, 50)
|
||||||
@ -99,7 +98,6 @@ class Transducer(nn.Module):
|
|||||||
new_emb = new_emb.transpose(1,0)
|
new_emb = new_emb.transpose(1,0)
|
||||||
self.prompt = torch.nn.Parameter(new_emb)
|
self.prompt = torch.nn.Parameter(new_emb)
|
||||||
print(self.prompt)
|
print(self.prompt)
|
||||||
'''
|
|
||||||
|
|
||||||
def forward(
|
def forward(
|
||||||
self,
|
self,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user