Skip to content

Commit b0650da

Browse files
committed
Remove deprecation of cutc decoder
1 parent a645da6 commit b0650da

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/torchaudio/models/decoder/__init__.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from torchaudio._internal.module_utils import dropping_support, dropping_class_support
21
import inspect
32
_CTC_DECODERS = [
43
"CTCHypothesis",
@@ -35,11 +34,7 @@ def __getattr__(name: str):
3534
"To use CUCTC decoder, please set BUILD_CUDA_CTC_DECODER=1 when building from source."
3635
) from err
3736

38-
orig_item = getattr(_cuda_ctc_decoder, name)
39-
if inspect.isclass(orig_item):
40-
item = dropping_class_support(orig_item)
41-
else:
42-
item = dropping_support(orig_item)
37+
item = getattr(_cuda_ctc_decoder, name)
4338
globals()[name] = item
4439
return item
4540
raise AttributeError(f"module {__name__} has no attribute {name}")

0 commit comments

Comments
 (0)