Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speedup RNN-T greedy decoding (#7926)
* Add structure for batched hypotheses Signed-off-by: Vladimir Bataev <[email protected]> * Add faster decoding algo Signed-off-by: Vladimir Bataev <[email protected]> * Simplify max_symbols support. More speedup Signed-off-by: Vladimir Bataev <[email protected]> * Clean up Signed-off-by: Vladimir Bataev <[email protected]> * Clean up Signed-off-by: Vladimir Bataev <[email protected]> * Filtering only when necessary Signed-off-by: Vladimir Bataev <[email protected]> * Move max_symbols check to the end of loop Signed-off-by: Vladimir Bataev <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Support returning prediction network states Signed-off-by: Vladimir Bataev <[email protected]> * Support preserve_alignments flag Signed-off-by: Vladimir Bataev <[email protected]> * Support confidence Signed-off-by: Vladimir Bataev <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Partial fix for jit compatibility Signed-off-by: Vladimir Bataev <[email protected]> * Support switching between decoding algorithms Signed-off-by: Vladimir Bataev <[email protected]> * Fix switching algorithms Signed-off-by: Vladimir Bataev <[email protected]> * Clean up Signed-off-by: Vladimir Bataev <[email protected]> * Clean up Signed-off-by: Vladimir Bataev <[email protected]> * Fix max symbols per step Signed-off-by: Vladimir Bataev <[email protected]> * Add tests. Preserve torch.jit compatibility for BatchedHyps Signed-off-by: Vladimir Bataev <[email protected]> * Separate projection from Joint calculation in decoding Signed-off-by: Vladimir Bataev <[email protected]> * Fix config instantiation Signed-off-by: Vladimir Bataev <[email protected]> * Fix after main merge Signed-off-by: Vladimir Bataev <[email protected]> * Add tests for batched hypotheses Signed-off-by: Vladimir Bataev <[email protected]> * Speedup alignments Signed-off-by: Vladimir Bataev <[email protected]> * Test alignments Signed-off-by: Vladimir Bataev <[email protected]> * Fix alignments Signed-off-by: Vladimir Bataev <[email protected]> * Fix tests for alignments Signed-off-by: Vladimir Bataev <[email protected]> * Add more tests Signed-off-by: Vladimir Bataev <[email protected]> * Fix confidence tests Signed-off-by: Vladimir Bataev <[email protected]> * Avoid common package modification Signed-off-by: Vladimir Bataev <[email protected]> * Support Stateless prediction network Signed-off-by: Vladimir Bataev <[email protected]> * Improve stateless decoder support. Separate alignments and confidence Signed-off-by: Vladimir Bataev <[email protected]> * Fix alignments for max_symbols_per_step Signed-off-by: Vladimir Bataev <[email protected]> * Fix alignments for max_symbols_per_step=0 Signed-off-by: Vladimir Bataev <[email protected]> * Fix tests Signed-off-by: Vladimir Bataev <[email protected]> * Fix test Signed-off-by: Vladimir Bataev <[email protected]> * Add comments Signed-off-by: Vladimir Bataev <[email protected]> * Batched Hyps/Alignments: lengths -> current_lengths Signed-off-by: Vladimir Bataev <[email protected]> * Simplify indexing Signed-off-by: Vladimir Bataev <[email protected]> * Improve type annotations Signed-off-by: Vladimir Bataev <[email protected]> * Rework test for greedy decoding Signed-off-by: Vladimir Bataev <[email protected]> * Document loop_labels Signed-off-by: Vladimir Bataev <[email protected]> * Raise ValueError if max_symbols_per_step <= 0 Signed-off-by: Vladimir Bataev <[email protected]> * Add comments Signed-off-by: Vladimir Bataev <[email protected]> * Fix test Signed-off-by: Vladimir Bataev <[email protected]> --------- Signed-off-by: Vladimir Bataev <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Signed-off-by: stevehuang52 <[email protected]>
- Loading branch information