From d38aab425a9e4e6522d94b92d5f3efa6069e81f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian-Robert=20St=C3=B6ter?= Date: Mon, 24 Aug 2020 18:11:00 +0200 Subject: [PATCH] fix resample type hint --- torchaudio/transforms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/torchaudio/transforms.py b/torchaudio/transforms.py index 2b335a5d68..c39e73294f 100644 --- a/torchaudio/transforms.py +++ b/torchaudio/transforms.py @@ -567,8 +567,8 @@ class Resample(torch.nn.Module): """ def __init__(self, - orig_freq: int = 16000, - new_freq: int = 16000, + orig_freq: float = 16000, + new_freq: float = 16000, resampling_method: str = 'sinc_interpolation') -> None: super(Resample, self).__init__() self.orig_freq = orig_freq