From b28bff06c84229fc99b8bd9c55d6255fa970add6 Mon Sep 17 00:00:00 2001 From: YangZhou <56786796+SmileGoat@users.noreply.github.com> Date: Wed, 21 Sep 2022 10:44:03 +0800 Subject: [PATCH] Remove audio ParameterError (#46316) * unexpose audio ParameterError * clean audio utils api --- paddle/fluid/API.spec | 4 ---- python/paddle/audio/__init__.py | 3 +-- python/paddle/audio/utils/__init__.py | 1 - python/setup.py.in | 1 - 4 files changed, 1 insertion(+), 8 deletions(-) diff --git a/paddle/fluid/API.spec b/paddle/fluid/API.spec index 4b58c2cb06e..8a2e65922a1 100644 --- a/paddle/fluid/API.spec +++ b/paddle/fluid/API.spec @@ -21,7 +21,3 @@ paddle.audio.functional.functional.mel_frequencies (ArgSpec(args=['n_mels', 'f_m paddle.audio.functional.functional.mel_to_hz (ArgSpec(args=['mel', 'htk'], varargs=None, varkw=None, defaults=(False,), kwonlyargs=[], kwonlydefaults=None, annotations={'return': typing.Union[float, paddle.Tensor], 'mel': typing.Union[float, paddle.Tensor], 'htk': }), ('document', 'e93b432d382f98c60d7c7599489e7072')) paddle.audio.functional.functional.power_to_db (ArgSpec(args=['spect', 'ref_value', 'amin', 'top_db'], varargs=None, varkw=None, defaults=(1.0, 1e-10, 80.0), kwonlyargs=[], kwonlydefaults=None, annotations={'return': , 'spect': , 'ref_value': , 'amin': , 'top_db': typing.Union[float, NoneType]}), ('document', '28bbb1973e8399e856bfaea0415cecb9')) paddle.audio.functional.window.get_window (ArgSpec(args=['window', 'win_length', 'fftbins', 'dtype'], varargs=None, varkw=None, defaults=(True, 'float64'), kwonlyargs=[], kwonlydefaults=None, annotations={'return': , 'window': typing.Union[str, typing.Tuple[str, float]], 'win_length': , 'fftbins': , 'dtype': }), ('document', '2418d63da10c0cd5da9ecf0a88ddf783')) -paddle.audio.utils (ArgSpec(), ('document', 'd41d8cd98f00b204e9800998ecf8427e')) -paddle.audio.utils.error.ParameterError (ArgSpec(), ('document', 'e12783df4d137af121ebadceb389bf7a')) -paddle.audio.utils.error.ParameterError.args (ArgSpec(), ('document', 'd41d8cd98f00b204e9800998ecf8427e')) -paddle.audio.utils.error.ParameterError.with_traceback (ArgSpec(), ('document', '3f2d1353ad5034ed0f4628f2c9f066cc')) diff --git a/python/paddle/audio/__init__.py b/python/paddle/audio/__init__.py index e76a80300f5..aaf11b5b2c1 100644 --- a/python/paddle/audio/__init__.py +++ b/python/paddle/audio/__init__.py @@ -14,6 +14,5 @@ from . import features from . import functional -from . import utils -__all__ = ["functional", "features", "utils"] +__all__ = ["functional", "features"] diff --git a/python/paddle/audio/utils/__init__.py b/python/paddle/audio/utils/__init__.py index b3502b76cce..55a55c3ed0a 100644 --- a/python/paddle/audio/utils/__init__.py +++ b/python/paddle/audio/utils/__init__.py @@ -11,4 +11,3 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -from .error import ParameterError diff --git a/python/setup.py.in b/python/setup.py.in index b101c5e1d6c..14ebb8749ba 100755 --- a/python/setup.py.in +++ b/python/setup.py.in @@ -372,7 +372,6 @@ packages=['paddle', 'paddle.audio', 'paddle.audio.functional', 'paddle.audio.features', - 'paddle.audio.utils', 'paddle.text', 'paddle.text.datasets', 'paddle.incubate', -- GitLab