1. 12 Oct, 2023 1 commit
  2. 09 Oct, 2023 1 commit
  3. 01 Jun, 2023 1 commit
  4. 30 May, 2023 1 commit
    • Moto Hira's avatar
      Simplify sox namespace (#3383) · a81b0ed2
      Moto Hira authored
      Summary:
      Pull Request resolved: https://github.com/pytorch/audio/pull/3383
      
      This commit reduces `torchaudio::sox_*` namespace into `torchaudio::sox`.
      Also put Pybind11 registration and TorchBind registration into anonymous namescope.
      
      Differential Revision: D46257367
      
      fbshipit-source-id: 0f0f181eaa72036916e223263daf4b7c298fca0d
      a81b0ed2
  5. 21 Dec, 2022 1 commit
    • moto's avatar
      Extract libsox integration from libtorchaudio (#2929) · 1706a72f
      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
      1706a72f
  6. 19 Aug, 2022 1 commit
    • Moto Hira's avatar
      Refactor sox pybind source code (#2636) · 789adf07
      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
      789adf07
  7. 07 Sep, 2021 1 commit
    • moto's avatar
      Extract PyBind11 feature implementations (#1739) · 2a67fcc1
      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.
      2a67fcc1
  8. 02 Mar, 2021 1 commit
  9. 24 Feb, 2021 1 commit
  10. 29 Jan, 2021 1 commit
  11. 27 Jan, 2021 1 commit
  12. 26 Jan, 2021 1 commit
  13. 15 Jan, 2021 1 commit
  14. 07 Jan, 2021 1 commit
  15. 06 Jan, 2021 1 commit
  16. 27 Oct, 2020 1 commit
  17. 25 Jun, 2020 1 commit
  18. 15 May, 2020 1 commit
    • moto's avatar
      [BC Breaking] Reorganize C++ resources (#630) · 44af0dea
      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`.
      44af0dea
  19. 13 May, 2020 1 commit
  20. 23 Oct, 2019 1 commit
  21. 03 Sep, 2019 1 commit
  22. 29 Aug, 2019 2 commits
  23. 29 Jul, 2019 1 commit
  24. 04 Jan, 2019 1 commit
  25. 25 Dec, 2018 5 commits
  26. 20 Aug, 2018 1 commit
  27. 09 May, 2018 1 commit
  28. 08 May, 2018 2 commits
  29. 26 Apr, 2018 4 commits