Fix some typos. (#329)

This commit is contained in:
whsqkaak 2022-04-22 16:54:59 +09:00 committed by GitHub
parent 3607c516d6
commit d766dc5aee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 9 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)