Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: lilithgrigoryan <[email protected]>
  • Loading branch information
lilithgrigoryan committed Oct 11, 2024
1 parent b4ed45a commit 710aeac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nemo/collections/asr/modules/rnnt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ def batch_concat_states(self, batch_states: List[List[torch.Tensor]]) -> List[to
for state_id in range(len(batch_states[0])):
batch_list = []
for sample_id in range(len(batch_states)):
tensor = torch.stack(batch_states[sample_id][state_id]) # [L, H]
tensor = torch.stack(batch_states[sample_id][state_id]) if not isinstance(batch_states[sample_id][state_id], torch.Tensor) else batch_states[sample_id][state_id] # [L, H]
tensor = tensor.unsqueeze(0) # [1, L, H]
batch_list.append(tensor)

Expand Down

0 comments on commit 710aeac

Please sign in to comment.