Skip to content

Commit 70caf76

Browse files
authored
Update deprecation wording, add warnings to main pages (#3955)
1 parent 8353ffb commit 70caf76

38 files changed

+326
-26
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ torchaudio: an audio library for PyTorch
1010
> [!NOTE]
1111
> **We are in the process of refactoring TorchAudio and transitioning it into a
1212
> maintenance phase. This process will include removing some user-facing
13-
> features. Our main goals are to reduce redundancies with the rest of the
13+
> features: those features are deprecated from TorchAudio 2.8 and will be removed in 2.9.
14+
> Our main goals are to reduce redundancies with the rest of the
1415
> PyTorch ecosystem, make it easier to maintain, and create a version of
1516
> TorchAudio that is more tightly scoped to its strengths: processing audio
1617
> data for ML. Please see

docs/source/index.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ Torchaudio is a library for audio and signal processing with PyTorch.
77
It provides I/O, signal and data processing functions, datasets,
88
model implementations and application components.
99

10+
.. note::
11+
Starting with version 2.8, we are refactoring TorchAudio to transition it
12+
into a maintenance phase. As a result:
13+
14+
- Some APIs are deprecated in 2.8 and will be removed in 2.9.
15+
- The decoding and encoding capabilities of PyTorch for both audio and video
16+
are being consolidated into TorchCodec.
17+
18+
Please see https://github.com/pytorch/audio/issues/3902 for more information.
19+
20+
1021
..
1122
Generate Table Of Contents (left navigation bar)
1223
NOTE: If you are adding tutorials, add entries to toctree and customcarditem below

docs/source/io.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
torchaudio.io
44
=============
55

6+
.. warning::
7+
Starting with version 2.8, we are refactoring TorchAudio to transition it
8+
into a maintenance phase. As a result:
9+
10+
- The ``torchaudio.io`` module is deprecated in 2.8 and will be removed in 2.9.
11+
- The decoding and encoding capabilities of PyTorch for both audio and video
12+
are being consolidated into TorchCodec.
13+
14+
Please see https://github.com/pytorch/audio/issues/3902 for more information.
15+
616
.. currentmodule:: torchaudio.io
717

818
.. autosummary::

docs/source/kaldi_io.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ torchaudio.kaldi_io
88
99
.. currentmodule:: torchaudio.kaldi_io
1010

11+
.. warning::
12+
Starting with version 2.8, we are refactoring TorchAudio to transition it
13+
into a maintenance phase. As a result, the ``kaldi_io`` module is
14+
deprecated in 2.8 and will be removed in 2.9.
15+
1116
To use this module, the dependency kaldi_io_ needs to be installed.
1217
This is a light wrapper around ``kaldi_io`` that returns :class:`torch.Tensor`.
1318

docs/source/libtorio.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
libtorio
22
========
33

4+
45
.. warning::
5-
TorchAudio's C++ API is a prototype feature.
6-
API/ABI backward compatibility is not guaranteed.
6+
Starting with version 2.8, we are refactoring TorchAudio to transition it
7+
into a maintenance phase. As a result:
8+
9+
- ``torio`` is deprecated in 2.8 and will be removed in 2.9.
10+
- The decoding and encoding capabilities of PyTorch for both audio and video
11+
are being consolidated into TorchCodec.
12+
13+
Please see https://github.com/pytorch/audio/issues/3902 for more information.
714

815
.. toctree::
916
libtorio.stream_reader

docs/source/libtorio.stream_reader.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
12
.. warning::
2-
TorchAudio's C++ API is a prototype feature.
3-
API/ABI backward compatibility is not guaranteed.
3+
Starting with version 2.8, we are refactoring TorchAudio to transition it
4+
into a maintenance phase. As a result:
5+
6+
- ``torio`` is deprecated in 2.8 and will be removed in 2.9.
7+
- The decoding and encoding capabilities of PyTorch for both audio and video
8+
are being consolidated into TorchCodec.
9+
10+
Please see https://github.com/pytorch/audio/issues/3902 for more information.
411

512

613
.. note::

docs/source/libtorio.stream_writer.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1+
12
.. warning::
2-
TorchAudio's C++ API is prototype feature.
3-
API/ABI backward compatibility is not guaranteed.
3+
Starting with version 2.8, we are refactoring TorchAudio to transition it
4+
into a maintenance phase. As a result:
5+
6+
- ``torio`` is deprecated in 2.8 and will be removed in 2.9.
7+
- The decoding and encoding capabilities of PyTorch for both audio and video
8+
are being consolidated into TorchCodec.
49

10+
Please see https://github.com/pytorch/audio/issues/3902 for more information.
511

612
.. note::
713
The top-level namespace has been changed from ``torchaudio`` to ``torio``.

docs/source/prototype.datasets.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ torchaudio.prototype.datasets
55

66
.. currentmodule:: torchaudio.prototype.datasets
77

8+
.. warning::
9+
Starting with version 2.8, we are refactoring TorchAudio to transition it
10+
into a maintenance phase. As a result, the ``prototype`` module is
11+
deprecated in 2.8 and will be removed in 2.9.
12+
813
.. autosummary::
914
:toctree: generated
1015
:nosignatures:

docs/source/prototype.functional.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ torchaudio.prototype.functional
44
.. py:module:: torchaudio.prototype.functional
55
.. currentmodule:: torchaudio.prototype.functional
66

7+
.. warning::
8+
Starting with version 2.8, we are refactoring TorchAudio to transition it
9+
into a maintenance phase. As a result, the ``prototype`` module is
10+
deprecated in 2.8 and will be removed in 2.9.
11+
712
Utility
813
~~~~~~~
914

docs/source/prototype.models.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ torchaudio.prototype.models
44
.. py:module:: torchaudio.prototype.models
55
.. currentmodule:: torchaudio.prototype.models
66

7+
.. warning::
8+
Starting with version 2.8, we are refactoring TorchAudio to transition it
9+
into a maintenance phase. As a result, the ``prototype`` module is
10+
deprecated in 2.8 and will be removed in 2.9.
711

812
The ``torchaudio.prototype.models`` subpackage contains definitions of models for addressing common audio tasks.
913

0 commit comments

Comments
 (0)