Skip to content

Commit

Permalink
[ASR] Fix type error in jasper (#7636) (#7653)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan <rlangman@nvidia.com>
Co-authored-by: Ryan Langman <rlangman@nvidia.com>
  • Loading branch information
github-actions[bot] and rlangman authored Oct 6, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent d08d1c5 commit 5b6209d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nemo/collections/asr/parts/submodules/jasper.py
Original file line number Diff line number Diff line change
@@ -375,7 +375,7 @@ def update_masked_length(self, max_len, seq_range=None, device=None):
self.lens = self.lens.to(device)
else:
self.lens = seq_range
self.max_len = max_len
self.max_len = torch.tensor(max_len)

def mask_input(self, x, lens):
max_len = x.size(2)

0 comments on commit 5b6209d

Please sign in to comment.