- 07 Sep, 2021 2 commits
-
-
moto authored
* Update the way to access libsox global config Preparation for splitting `libtorchaudio` and `_torchaudio`. When two libraries are compiled separately, and each code does `#include <sox.h>` independently, two copies of libsox's static global variables (`sox_globals_t`) are created. Our code should be referring to the same instance. To achieve this, `_torchaudio` should be accessing the global variable defined in `libtorchaudio` via the custom utility functions, and it should not directly use `sox_get_globals`.
-
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 Sep, 2021 6 commits
-
-
jayleverett authored
* put output tensor on device in `get_whitenoise()` * Update `get_spectrogram()` so that window uses same device as waveform * put window on proper device in `test_griffinlim()`
-
Caroline Chen authored
-
yangarbiter authored
-
Nikita Shulga authored
Cherry-pick of https://github.com/pytorch/vision/commit/d2460a75de237cfef8e5c3415f7bb0ad8467c0e5 into this repo Fixes https://github.com/pytorch/audio/issues/1750
-
Nikita Shulga authored
-
moto authored
-
- 01 Sep, 2021 1 commit
-
-
yangarbiter authored
-
- 31 Aug, 2021 4 commits
-
-
yangarbiter authored
-
Nikita Shulga authored
Downloading CUDA-11.1 from conda-forge takes a while
-
Nikita Shulga authored
* Remove some obsolete conditions about CUDA-10.0 from `pkg_helpers.bash`. * Use `USE_CUDA` instead of `FORCE_CUDA` in `pkg_helpers.bash` * Do not define `NO_CUDA_PACKAGE` in build_wheel.sh and build_cuda.sh * Add conda-forge for Win cuda-11.1 builds * Pass USE_CUDA / TORCH_CUDA_ARCH_LIST to conda build * Add selected CUDA to path * Don't define USE_CUDA for ROCM TODO: Fix Windows CUDA builds
-
Nikita Shulga authored
It's wrong to depend on `${TORCH_LIBRARIES}` as it pulls in explicit `libcuda.so.1` dependency, which violates the assumption that GPU accelerated libraries should be loadable with no NVIDIA drivers installed Instead, make it depend on `torch` target, which includes all necessary Torch C++ API dependences
-
- 30 Aug, 2021 3 commits
-
-
moto authored
Calling `torch.[ops|classes].load_library(<PATH_TO_LIBRARY_FILE>)` is problematic in case `torchaudio` is deployed with PEX format, because the library file does not exist as a file. Our extension module, when it exists, is guaranteed to have PyBind11 binding even when no function is bound. This allows to load the library using the regular `import` statement in Python, and it works even in PEX format. When the library is loaded, the static initialization kicks in and the custom kernels bound via TorchScript also become available. This removes the need to call `torch.[ops|classe].load_library`. This works even when the implementation of custom kernel is stripped from `_torchaudio.so` so long as `_torchaudio.so` properly depend on the library that has the kernel implementations and static initialization.
-
Chin-Yun Yu authored
-
Nikita Shulga authored
Needed to support CUDA builds on CPU machine Parse `TORCH_CUDA_ARCH_LIST` as new-CUDA-language Cmake-3.18+ style [CMAKE_CUDA_ARCHITECTURES](https://cmake.org/cmake/help/latest/prop_tgt/CUDA_ARCHITECTURES.html#prop_tgt:CUDA_ARCHITECTURES)
-
- 28 Aug, 2021 2 commits
-
-
Nikita Shulga authored
Copy `cuda_install.bat` from https://github.com/pytorch/vision/blob/3d9d264198e2167030dc04bf453aeca47daa37db/packaging/windows/internal/cuda_install.bat Add `windows_intall_cuda` step and include it in `binary_windows_conda` and `binary_windows_wheel` workflows
-
Nikita Shulga authored
That marks `.circleci/.config.yml` as auto-generated that excluding it from code-reviews
-
- 27 Aug, 2021 2 commits
- 26 Aug, 2021 4 commits
-
-
moto authored
* Default to BUILD_SOX=1 in non-Windows systems Since the adaptation of CMake and restricting to the static linking of libsox, the build process has become much robust with libsox integration enabled. This commit makes it default behavior to build libsox integration in non-Windows systems. The build process still checks BUILD_SOX env var so, setting `BUILD_SOX=0` disables it.
-
moto authored
-
nateanl authored
- Support three solutions for MVDR beamforming ("ref_channel", "stv_evd", "stv_power"). - Support single-channel and multi-channel time-frequency masks - Add unit tests -
nateanl authored
-
- 23 Aug, 2021 2 commits
-
-
yangarbiter authored
-
Arijit Roy authored
-
- 20 Aug, 2021 3 commits
-
-
Caroline Chen authored
-
hwangjeff authored
* Add basic filtfilt implementation * Add filtfilt to functional package; add tests Co-authored-by:V G <vladislav.goncharenko@phystech.edu>
-
bowangbj authored
`torchaudio` treats `soundfile` as an optional dependency, and it assumes either `soundfile` is properly installed or it is not installed at all. However, there is a third state where `soundfile` is installed but the backing library `libsndfile` is not installed, and in this case, `import torchaudio` fails. This commit resolves it by further checking if `soundfile` is importable. See also: https://github.com/pytorch/audio/issues/1687
-
- 19 Aug, 2021 2 commits
-
-
Caroline Chen authored
-
nateanl authored
-
- 18 Aug, 2021 3 commits
-
-
moto authored
When building torchaudio from source, `get_version.sh` from kaldi is executed everytime, which results in kaldi-bindings to be always rebuilt. This commit add "if" guard to the part so that they are not always executed.
-
yangarbiter authored
-
yangarbiter authored
-
- 17 Aug, 2021 2 commits
-
-
Caroline Chen authored
-
yangarbiter authored
-
- 14 Aug, 2021 1 commit
-
-
nateanl authored
-
- 12 Aug, 2021 3 commits
-
-
hwangjeff authored
* Reduce length of waveform in pitch_shift batch_consistency test Summary: To address the test failure in T96406395 Reviewed By: carolineechen Differential Revision: D30163741 fbshipit-source-id: f88d86b3da7b1ee52518934567b0b0a62700ee58 * Fix batch consistency test in transforms Summary: The stress test still fails. Add n_fft to address it. Reviewed By: mthrok Differential Revision: D30218279 fbshipit-source-id: 7858efd3e5ac0073193a7883fd314486efc73814 Co-authored-by:Zhaoheng Ni <zni@fb.com>
-
yangarbiter authored
-
Chin-Yun Yu authored
-