- 12 Oct, 2023 2 commits
-
-
moto-meta authored
Differential Revision: D50193749 Pull Request resolved: https://github.com/pytorch/audio/pull/3650
-
moto-meta authored
Differential Revision: D50086556 Pull Request resolved: https://github.com/pytorch/audio/pull/3648
-
- 09 Oct, 2023 1 commit
-
-
moto-meta authored
Differential Revision: D49965263 Pull Request resolved: https://github.com/pytorch/audio/pull/3639
-
- 12 Jul, 2023 1 commit
-
-
moto authored
Summary: This commit introduces support for multiple FFmpeg versions for OSS binary distributions. Currently torchaudio only works with FFmpeg 4. This is inconvenient from installing to runtime linking. This commit allows to pick FFmpeg 4, 5 or 6 at runtime, instead of just looking for v4. The way it works is that we compile the FFmpeg extension three times with different FFmpeg and ship them. At runtime, we look for libavutil of specific version and when one is found, load the corresponding FFmpeg extension. The order of preference is 6, 5, then 4. To make the build process simple and reproducible, we use pre-built binaries of FFmpeg during the build. They are LGPL and downloaded from S3 at build time, instead of building every time. The use of pre-built binaries as scaffolding limits the system that can build torchaudio, so it also introduces single FFmpeg version support mode. setting FFMPEG_ROOT during the build will change the way binaries are built so that it will only support one specific version of FFmpeg. Pull Request resolved: https://github.com/pytorch/audio/pull/3464 Differential Revision: D47300223 Pulled By: mthrok fbshipit-source-id: 560c7968315e4c8922afa11a4693f648c0356d04
-
- 05 Jun, 2023 1 commit
-
-
moto authored
Summary: Follow up of: https://github.com/pytorch/audio/pull/3368 Remove files and lines no longer used. Pull Request resolved: https://github.com/pytorch/audio/pull/3403 Differential Revision: D46441462 Pulled By: mthrok fbshipit-source-id: 11b881ec4b24fa0d625c6aee9f4bd91f637f9923
-
- 20 May, 2023 1 commit
-
-
Zhaoheng Ni authored
Summary: Pull Request resolved: https://github.com/pytorch/audio/pull/3348 The pull request adds a CTC-based forced alignment function that supports both CPU and CUDA deviced. The function takes the CTC emissions and target labels as inputs and generates the corresponding labels for each frame. Reviewed By: vineelpratap, xiaohui-zhang Differential Revision: D45867265 fbshipit-source-id: 3e25b06bf9bc8bb1bdcdc08de7f4434d912154cb
-
- 14 Feb, 2023 1 commit
-
-
Zhaoheng Ni authored
Summary: replicate of https://github.com/pytorch/audio/issues/2644 Pull Request resolved: https://github.com/pytorch/audio/pull/2880 Reviewed By: mthrok Differential Revision: D41633911 Pulled By: nateanl fbshipit-source-id: 73cf145d75c389e996aafe96571ab86dc21f86e5
-
- 05 Jan, 2023 1 commit
-
-
Moto Hira authored
Summary: Pull Request resolved: https://github.com/pytorch/audio/pull/2956 Merge utility binding This commit updates the utility binding, so that we can use `is_module_available()` for checking the existence of extension modules. To ensure the existence of module, this commit migrates the binding of utility functions to PyBind11. Going forward, we should use TorchBind for ops that we want to support TorchScript, otherwise default to PyBind11. (PyBind has advantage of not copying strings.) Reviewed By: hwangjeff Differential Revision: D42355992 fbshipit-source-id: 4c71d65b24a0882a38a80dc097d45ba72b4c4a6b
-
- 21 Dec, 2022 1 commit
-
-
moto authored
Summary: This commit makes the following changes to the C++ library organization - Move sox-related feature implementations from `libtorchaudio` to `libtorchaudio_sox`. - Remove C++ implementation of `is_sox_available` and `is_ffmpeg_available` as it is now sufficient to check the existence of `libtorchaudio_sox` and `libtorchaudio_ffmpeg` to check the availability. This makes `libtorchaudio_sox` and `libtorchaudio_ffmpeg` independent from `libtorchaudio`. - Move PyBind11-based bindings (`_torchaudio_sox`, `_torchaudio_ffmpeg`) into `torchaudio.lib` so that the built library structure is less cluttered. Background: Originally, when the `libsox` was the only C++ extension and `libtorchaudio` was supposed to contain all the C++ code. The things are different now. We have a bunch of C++ extensions and we need to make the code/build structure more modular. The new `libtorchaudio_sox` contains the implementations and `_torchaudio_sox` contains the PyBin11-based bindings. Pull Request resolved: https://github.com/pytorch/audio/pull/2929 Reviewed By: hwangjeff Differential Revision: D42159594 Pulled By: mthrok fbshipit-source-id: 1a0fbca9e4143137f6363fc001b2378ce6029aa7
-
- 19 Aug, 2022 1 commit
-
-
Moto Hira authored
Summary: Pull Request resolved: https://github.com/pytorch/audio/pull/2636 At the early stage of torchaudio extension module, `torchaudio/csrc/pybind` directory was created so that all the code defining Python interface would be placed there and there will be only one extension module called `torchaudio._torchaudio`. However, the codebase has been evolved in a way separate extensions are defined for each feature (third party dependency) for the sake of more moduler file organization. What is left in `csrc/pybind` is libsox Python bindings. This commit moves it under `csrc/sox`. Follow-up rename `torchaudio._torchaudio` to `torchaudio._torchaudio_sox`. Reviewed By: carolineechen Differential Revision: D38829253 fbshipit-source-id: 3554af45a2beb0f902810c5548751264e093f28d
-
- 07 Sep, 2021 1 commit
-
-
moto authored
This PR moves the code related to PyBind11 to the dedicated directory `torchaudio/csrc/pybind`. Before, features related to PyBind11 (I/O for file-like object) was implemented in `torchaudio/csrc/sox` and the binding was defined in `torchaudio/csrc/pybind.cpp`. We used macro definition `TORCH_API_INCLUDE_EXTENSION_H` to turn on/off the feature, in addition to including/excluding `torchaudio/csrc/pybind.cpp` in the list of compiled source. In the previous manner, in C++ example, one had to rebuild libtorchaudio separately, but by splitting them completely at compile time, it should conceptually possible to distribute libtorchaudio within torchaudio Python package and reuse it for C++ example.
-
- 02 Mar, 2021 1 commit
-
-
Caroline Chen authored
-
- 24 Feb, 2021 1 commit
-
-
Prabhat Roy authored
-
- 29 Jan, 2021 1 commit
-
-
moto authored
-
- 27 Jan, 2021 1 commit
-
-
moto authored
-
- 26 Jan, 2021 1 commit
-
-
moto authored
-
- 15 Jan, 2021 1 commit
-
-
moto authored
* Support file-like object in save func * Disable CircleCI cache for TP artifacts for cleaner build
-
- 07 Jan, 2021 1 commit
-
-
moto authored
-
- 06 Jan, 2021 1 commit
-
-
moto authored
-
- 27 Oct, 2020 1 commit
-
-
moto authored
-
- 25 Jun, 2020 1 commit
-
-
moto authored
-
- 15 May, 2020 1 commit
-
-
moto authored
This PR - Changes the location of C++ codes from - from `torchaudio/torch_sox.cpp` to `torchaudio/csrc/sox.cpp` - from `torchaudio/torch_sox.h` to `torchaudio/csrc/sox.h` - Changes the location where the resulting library is placed - from `_torch_sox.so` (outside of `torchaudio` module) to `torchaudio/_torchaudio.so`.
-
- 13 May, 2020 1 commit
-
-
Fangjun Kuang authored
Fix #628
-
- 23 Oct, 2019 1 commit
-
-
Vincent QB authored
This reverts commit 962c6b0f.
-
- 03 Sep, 2019 1 commit
-
-
Vincent QB authored
This reverts commit 860edcdb.
-
- 29 Aug, 2019 2 commits
-
-
Fabrizio Milo authored
* fix deprecated torch type. * don't link alsa on linux.
-
Will Feng authored
-
- 29 Jul, 2019 1 commit
-
-
Edward Z. Yang authored
-
- 04 Jan, 2019 1 commit
-
-
David Pollack authored
-
- 25 Dec, 2018 5 commits
-
-
David Pollack authored
-
David Pollack authored
-
David Pollack authored
-
David Pollack authored
-
David Pollack authored
-
- 20 Aug, 2018 1 commit
-
-
David Pollack authored
-
- 09 May, 2018 1 commit
-
-
Peter Goldsborough authored
-
- 08 May, 2018 2 commits
-
-
Soumith Chintala authored
This reverts commit cfe3f296.
-
Edward Z. Yang authored
* Revert "Revert "Rewrote C code with C++ extensions" (#39)" This reverts commit 7236e3f4 . * Fix import error of C extension Signed-off-by:
Edward Z. Yang <ezyang@fb.com>
-
- 26 Apr, 2018 2 commits
-
-
Soumith Chintala authored
* Revert "Nits" This reverts commit 2db284c4. * Revert "Conform to sox library a bit better" This reverts commit c340a8d1. * Revert "Added test to make sure loading and saving gives the same file" This reverts commit cba11009. * Revert "Rewrote C code with C++ extensions" This reverts commit 8a41ecdc.
-
Peter Goldsborough authored
-