Skip to content

Commit

Permalink
fix dosctrings
Browse files Browse the repository at this point in the history
Signed-off-by: lilithgrigoryan <lgrigoryan@nvidia.com>
  • Loading branch information
lilithgrigoryan committed Oct 11, 2024
1 parent 098a1c2 commit 0917ceb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions nemo/collections/asr/modules/rnnt.py
Original file line number Diff line number Diff line change
Expand Up @@ -986,15 +986,15 @@ def batch_initialize_states(self, decoder_states: List[List[torch.Tensor]]) -> L
Args:
decoder_states (list of list of list of torch.Tensor): list of decoder states
[B, layer, L, H]
[B, C, L, H]
- B: Batch size.
- layer: e.g., for LSTM, this is 2: hidden and cell states
- C: e.g., for LSTM, this is 2: hidden and cell states
- L: Number of layers in prediction RNN.
- H: Dimensionality of the hidden state.
Returns:
batch_states (list of torch.Tensor): batch of decoder states
[layer x torch.Tensor[L x B x H]
[C x torch.Tensor[L x B x H]
"""
# stack decoder states into tensor of shape [B x layers x L x H]
# permute to the target shape [layers x L x B x H]
Expand Down
6 changes: 3 additions & 3 deletions nemo/collections/asr/modules/rnnt_abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,15 +248,15 @@ def batch_initialize_states(self, decoder_states: List[List[torch.Tensor]]):
Args:
decoder_states (list of list of list of torch.Tensor): list of decoder states
[B, layer, L, H]
[B, C, L, H]
- B: Batch size.
- layer: e.g., for LSTM, this is 2: hidden and cell states
- C: e.g., for LSTM, this is 2: hidden and cell states
- L: Number of layers in prediction RNN.
- H: Dimensionality of the hidden state.
Returns:
batch_states (list of torch.Tensor): batch of decoder states
[layer x torch.Tensor[L x B x H]
[C x torch.Tensor[L x B x H]
"""
raise NotImplementedError()

Expand Down

0 comments on commit 0917ceb

Please sign in to comment.