Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kamo-naoyuki committed May 12, 2022
1 parent 1c344a9 commit 6e9035d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion espnet/nets/pytorch_backend/nets_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def make_pad_mask(lengths, xs=None, length_dim=-1, maxlen=None):
if not isinstance(lengths, list):
lengths = lengths.tolist()
else:
assert isinstance(lengths, torch.tensor), type(lengths)
assert isinstance(lengths, torch.Tensor), type(lengths)
lengths = lengths.long()

bs = int(len(lengths))
Expand Down

0 comments on commit 6e9035d

Please sign in to comment.