mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-10 10:32:17 +00:00
Reduce initial_speed
This commit is contained in:
parent
c67ae0f3a1
commit
e59db01b7c
@ -61,8 +61,10 @@ class Transducer(nn.Module):
|
|||||||
self.decoder = decoder
|
self.decoder = decoder
|
||||||
self.joiner = joiner
|
self.joiner = joiner
|
||||||
|
|
||||||
self.simple_am_proj = ScaledLinear(embedding_dim, vocab_size)
|
self.simple_am_proj = ScaledLinear(embedding_dim, vocab_size,
|
||||||
self.simple_lm_proj = ScaledLinear(embedding_dim, vocab_size)
|
initial_speed=0.5)
|
||||||
|
self.simple_lm_proj = ScaledLinear(embedding_dim, vocab_size,
|
||||||
|
initial_speed=0.5)
|
||||||
with torch.no_grad():
|
with torch.no_grad():
|
||||||
# Initialize the two projections to be the same; this will be
|
# Initialize the two projections to be the same; this will be
|
||||||
# convenient for the real joiner, which adds the endcoder
|
# convenient for the real joiner, which adds the endcoder
|
||||||
|
Loading…
x
Reference in New Issue
Block a user