Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nemo/collections/asr/parts/utils/streaming_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2464,7 +2464,7 @@ def append_no_checks_(self, data: torch.Tensor, lengths: torch.Tensor | None = N
indices = torch.arange(other_len, device=self.device)
shifted_indices = self.lengths[:, None] + indices[None, :]
# add trailing len(dim_shape) axes to shifted_indices
shifted_indices = shifted_indices[..., *[None for _ in range(len(self.dim_shape))]]
shifted_indices = shifted_indices[(..., *(None for _ in range(len(self.dim_shape))))]
self.data.scatter_(dim=1, index=shifted_indices.expand([-1, -1] + self.dim_shape), src=data)
if lengths is None:
self.lengths += other_len
Expand Down
Loading