"src/vscode:/vscode.git/clone" did not exist on "1d033a95f62ccf2cdbb31795f69798ff1870241d"
Commit aa760caf authored by moto's avatar moto Committed by Facebook GitHub Bot
Browse files

Deprecate sox initialization/shutdown public API functions (#3010)

Summary:
These functions are called part of sox initialization, thus it is no longer needed.

Pull Request resolved: https://github.com/pytorch/audio/pull/3010

Reviewed By: hwangjeff

Differential Revision: D42744478

Pulled By: mthrok

fbshipit-source-id: 17d715b328392397ec47d81a533a307aac22862d
parent 41b88314
...@@ -26,6 +26,4 @@ Utilities ...@@ -26,6 +26,4 @@ Utilities
:toctree: generated :toctree: generated
:nosignatures: :nosignatures:
init_sox_effects
shutdown_sox_effects
effect_names effect_names
...@@ -3,9 +3,11 @@ from typing import List, Optional, Tuple ...@@ -3,9 +3,11 @@ from typing import List, Optional, Tuple
import torch import torch
import torchaudio import torchaudio
from torchaudio._internal.module_utils import deprecated
from torchaudio.utils.sox_utils import list_effects from torchaudio.utils.sox_utils import list_effects
@deprecated("Please remove the call. This function is called automatically.")
def init_sox_effects(): def init_sox_effects():
"""Initialize resources required to use sox effects. """Initialize resources required to use sox effects.
...@@ -20,6 +22,7 @@ def init_sox_effects(): ...@@ -20,6 +22,7 @@ def init_sox_effects():
pass pass
@deprecated("Please remove the call. This function is called automatically.")
def shutdown_sox_effects(): def shutdown_sox_effects():
"""Clean up resources required to use sox effects. """Clean up resources required to use sox effects.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment