We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 96ef204 + b0650da commit 126a2b0Copy full SHA for 126a2b0
src/torchaudio/models/decoder/__init__.py
@@ -1,4 +1,3 @@
1
-from torchaudio._internal.module_utils import dropping_support, dropping_class_support
2
import inspect
3
_CTC_DECODERS = [
4
"CTCHypothesis",
@@ -35,11 +34,7 @@ def __getattr__(name: str):
35
34
"To use CUCTC decoder, please set BUILD_CUDA_CTC_DECODER=1 when building from source."
36
) from err
37
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)
+ item = getattr(_cuda_ctc_decoder, name)
43
globals()[name] = item
44
return item
45
raise AttributeError(f"module {__name__} has no attribute {name}")
0 commit comments