make sure inputs live on CPU for ctc decoder (#2289)
Summary: Addressing the issue https://github.com/pytorch/audio/issues/2274: Raise Runtime errors when the input tensors to the CTC decoder are GPU tensors since the CTC decoder only runs on CPU. Also update the data type check to use "raise" rather than "assert". --- Pull Request resolved: https://github.com/pytorch/audio/pull/2289 Reviewed By: mthrok Differential Revision: D35255630 Pulled By: xiaohui-zhang fbshipit-source-id: d6c6e88d9ad4b9690bb741557fa9a9504e60872e
Showing
Please register or sign in to comment