mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-08 09:32:20 +00:00
Fix some typos. (#329)
This commit is contained in:
parent
3607c516d6
commit
d766dc5aee
@ -89,9 +89,9 @@ class Decoder(nn.Module):
|
|||||||
- (h, c), containing the state information for LSTM layers.
|
- (h, c), containing the state information for LSTM layers.
|
||||||
Both are of shape (num_layers, N, C)
|
Both are of shape (num_layers, N, C)
|
||||||
"""
|
"""
|
||||||
embeding_out = self.embedding(y)
|
embedding_out = self.embedding(y)
|
||||||
embeding_out = self.embedding_dropout(embeding_out)
|
embedding_out = self.embedding_dropout(embedding_out)
|
||||||
rnn_out, (h, c) = self.rnn(embeding_out, states)
|
rnn_out, (h, c) = self.rnn(embedding_out, states)
|
||||||
out = self.output_linear(rnn_out)
|
out = self.output_linear(rnn_out)
|
||||||
|
|
||||||
return out, (h, c)
|
return out, (h, c)
|
||||||
|
@ -93,9 +93,9 @@ class Decoder(nn.Module):
|
|||||||
- (h, c), containing the state information for LSTM layers.
|
- (h, c), containing the state information for LSTM layers.
|
||||||
Both are of shape (num_layers, N, C)
|
Both are of shape (num_layers, N, C)
|
||||||
"""
|
"""
|
||||||
embeding_out = self.embedding(y)
|
embedding_out = self.embedding(y)
|
||||||
embeding_out = self.embedding_dropout(embeding_out)
|
embedding_out = self.embedding_dropout(embedding_out)
|
||||||
rnn_out, (h, c) = self.rnn(embeding_out, states)
|
rnn_out, (h, c) = self.rnn(embedding_out, states)
|
||||||
out = self.output_linear(rnn_out)
|
out = self.output_linear(rnn_out)
|
||||||
|
|
||||||
return out, (h, c)
|
return out, (h, c)
|
||||||
|
@ -84,9 +84,9 @@ class Decoder(nn.Module):
|
|||||||
- (h, c), which contain the state information for RNN layers.
|
- (h, c), which contain the state information for RNN layers.
|
||||||
Both are of shape (num_layers, N, C)
|
Both are of shape (num_layers, N, C)
|
||||||
"""
|
"""
|
||||||
embeding_out = self.embedding(y)
|
embedding_out = self.embedding(y)
|
||||||
embeding_out = self.embedding_dropout(embeding_out)
|
embedding_out = self.embedding_dropout(embedding_out)
|
||||||
rnn_out, (h, c) = self.rnn(embeding_out, states)
|
rnn_out, (h, c) = self.rnn(embedding_out, states)
|
||||||
out = self.output_linear(rnn_out)
|
out = self.output_linear(rnn_out)
|
||||||
|
|
||||||
return out, (h, c)
|
return out, (h, c)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user