Skip to content

Commit 76b743e

Browse files
authored
Fix typos in backend dispatch UserWarning message (#3913)
1 parent 1a8f621 commit 76b743e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/torchaudio/backend/no_backend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ def __getattr__(name: str):
22
import warnings
33

44
warnings.warn(
5-
"Torchaudio's I/O functions now support par-call bakcend dispatch. "
5+
"Torchaudio's I/O functions now support per-call backend dispatch. "
66
"Importing backend implementation directly is no longer guaranteed to work. "
77
"Please use `backend` keyword with load/save/info function, instead of "
8-
"calling the udnerlying implementation directly.",
8+
"calling the underlying implementation directly.",
99
stacklevel=2,
1010
)
1111

src/torchaudio/backend/soundfile_backend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ def __getattr__(name: str):
22
import warnings
33

44
warnings.warn(
5-
"Torchaudio's I/O functions now support par-call bakcend dispatch. "
5+
"Torchaudio's I/O functions now support per-call backend dispatch. "
66
"Importing backend implementation directly is no longer guaranteed to work. "
77
"Please use `backend` keyword with load/save/info function, instead of "
8-
"calling the udnerlying implementation directly.",
8+
"calling the underlying implementation directly.",
99
stacklevel=2,
1010
)
1111

src/torchaudio/backend/sox_io_backend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ def __getattr__(name: str):
22
import warnings
33

44
warnings.warn(
5-
"Torchaudio's I/O functions now support par-call bakcend dispatch. "
5+
"Torchaudio's I/O functions now support per-call backend dispatch. "
66
"Importing backend implementation directly is no longer guaranteed to work. "
77
"Please use `backend` keyword with load/save/info function, instead of "
8-
"calling the udnerlying implementation directly.",
8+
"calling the underlying implementation directly.",
99
stacklevel=2,
1010
)
1111

0 commit comments

Comments
 (0)