Fix bug with unsqueezing length tensor in RNNTBeamSearch (#2344)
Summary: This PR amends `RNNTBeamSearch`'s streaming decoding method to correctly unsqueeze `length` when its dimension is 0. Original comment: Is "input.dim() == 0" unreachable as it could only be 2 or 3 in assertion of Line 329? Pull Request resolved: https://github.com/pytorch/audio/pull/2344 Reviewed By: carolineechen, nateanl Differential Revision: D35899740 Pulled By: hwangjeff fbshipit-source-id: 84c1692b8cc9e5d35798d87f4a1bd052d94af9fb
Showing
Please register or sign in to comment