Skip to content

Commit 1910dbc

Browse files
hwangjefffacebook-github-bot
authored andcommitted
Import torchaudio #1828 60aeb78
Summary: title Reviewed By: carolineechen Differential Revision: D31476921 fbshipit-source-id: c790146b133921de8bbda67c8e8c7a1b321b4bd4
1 parent dc17160 commit 1910dbc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+4079
-715
lines changed

.circleci/unittest/linux/scripts/run_style_checks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ set +e
2929
exit_status=0
3030

3131
printf "\x1b[34mRunning flake8:\x1b[0m\n"
32-
flake8 torchaudio test build_tools/setup_helpers docs/source/conf.py examples
32+
flake8 torchaudio test tools/setup_helpers docs/source/conf.py examples
3333
status=$?
3434
exit_status="$((exit_status+status))"
3535
if [ "${status}" -ne 0 ]; then

.github/ISSUE_TEMPLATE/bug-report.md

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: 🐛 Bug Report
2+
description: Create a report to help us reproduce and fix the bug
3+
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: >
8+
#### Before submitting a bug, please make sure the issue hasn't been already addressed by searching through [the existing and past issues](https://github.com/pytorch/audio/issues?q=is%3Aissue+sort%3Acreated-desc+).
9+
- type: textarea
10+
attributes:
11+
label: 🐛 Describe the bug
12+
description: |
13+
Please provide a clear and concise description of what the bug is.
14+
15+
If relevant, add a minimal example so that we can reproduce the error by running the code. It is very important for the snippet to be as succinct (minimal) as possible, so please take time to trim down any irrelevant code to help us debug efficiently. We are going to copy-paste your code and we hope to get the same result as you did: avoid any external data, and include the relevant imports, etc. For example:
16+
17+
```python
18+
# All necessary imports at the beginning
19+
import torch
20+
from torchaudio.transforms import Spectrogram, InverseSpectrogram
21+
22+
# A succinct reproducing example trimmed down to the essential parts:
23+
theta = torch.linspace(0, 300 * 3.14, 8000)
24+
waveform = torch.sin(theta).unsqueeze(0)
25+
n_fft = 400
26+
center = False
27+
spec = Spectrogram(n_fft=n_fft, center=center, power=None, return_complex=True)(waveform)
28+
recon = InverseSpectrogram(n_fft=n_fft, center=center)(spec) # Note: the bug is here, the window and center settings must satisfy NOLA check.
29+
print('recon:', recon.shape)
30+
```
31+
32+
If the code and or the traceback is too long, feel free to put it in a public gist and link it in the issue: https://gist.github.com.
33+
34+
Please also paste or describe the results you observe instead of the expected results. If you observe an error, please paste the error message including the **full** traceback of the exception. It may be relevant to wrap error messages in ```` ```triple quotes blocks``` ````.
35+
placeholder: |
36+
A clear and concise description of what the bug is.
37+
38+
```python
39+
Sample code to reproduce the problem
40+
```
41+
42+
```
43+
The error message you got, with the full traceback.
44+
````
45+
validations:
46+
required: true
47+
- type: textarea
48+
attributes:
49+
label: Versions
50+
description: |
51+
Please run the following and paste the output below.
52+
```sh
53+
wget https://github.com/raw/pytorch/pytorch/master/torch/utils/collect_env.py
54+
# For security purposes, please check the contents of collect_env.py before running it.
55+
python collect_env.py
56+
```
57+
validations:
58+
required: true
59+
- type: markdown
60+
attributes:
61+
value: >
62+
Thanks for contributing 🎉!

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Usage questions
4+
url: https://discuss.pytorch.org/
5+
about: Ask questions and discuss with other torchaudio community members

.github/ISSUE_TEMPLATE/documentation.md

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: 📚 Documentation
2+
description: Report an issue related to https://pytorch.org/audio/stable/index.html
3+
4+
body:
5+
- type: textarea
6+
attributes:
7+
label: 📚 The doc issue
8+
description: >
9+
A description of what content in https://pytorch.org/audio/stable/index.html is an issue. If this has to do with the general https://pytorch.org website, please file an issue at https://github.com/pytorch/pytorch.github.io/issues/new/choose instead. If this has to do with https://pytorch.org/tutorials, please file an issue at https://github.com/pytorch/tutorials/issues/new.
10+
validations:
11+
required: true
12+
- type: textarea
13+
attributes:
14+
label: Suggest a potential alternative/fix
15+
description: >
16+
Tell us how we could improve the documentation in this regard.
17+
- type: markdown
18+
attributes:
19+
value: >
20+
Thanks for contributing 🎉!

.github/ISSUE_TEMPLATE/feature-request.md

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: 🚀 Feature request
2+
description: Submit a proposal/request for a new torchaudio feature
3+
4+
body:
5+
- type: textarea
6+
attributes:
7+
label: 🚀 The feature
8+
description: >
9+
A clear and concise description of the feature proposal
10+
validations:
11+
required: true
12+
- type: textarea
13+
attributes:
14+
label: Motivation, pitch
15+
description: >
16+
Please outline the motivation for the proposal. Is your feature request related to a specific problem? e.g., *"I'm working on X and would like Y to be possible"*. If this is related to another GitHub issue, please link here too.
17+
validations:
18+
required: true
19+
- type: textarea
20+
attributes:
21+
label: Alternatives
22+
description: >
23+
A description of any alternative solutions or features you've considered, if any.
24+
- type: textarea
25+
attributes:
26+
label: Additional context
27+
description: >
28+
Add any other context or screenshots about the feature request.
29+
- type: markdown
30+
attributes:
31+
value: >
32+
Thanks for contributing 🎉!

.github/ISSUE_TEMPLATE/questions-help-support.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ option(BUILD_RNNT "Enable RNN transducer" ON)
6262
option(BUILD_TORCHAUDIO_PYTHON_EXTENSION "Build Python extension" OFF)
6363
option(USE_CUDA "Enable CUDA support" OFF)
6464
option(USE_ROCM "Enable ROCM support" OFF)
65+
option(USE_OPENMP "Enable OpenMP support" OFF)
6566

6667

6768
# check that USE_CUDA and USE_ROCM are not set at the same time
@@ -122,6 +123,10 @@ if(MSVC)
122123
endif()
123124
endif()
124125

126+
if(USE_OPENMP)
127+
find_package(OpenMP REQUIRED)
128+
endif()
129+
125130
# TORCH_CXX_FLAGS contains the same -D_GLIBCXX_USE_CXX11_ABI value as PyTorch
126131
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall ${TORCH_CXX_FLAGS}")
127132

docs/source/datasets.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,18 +97,18 @@ TEDLIUM
9797
:special-members: __getitem__
9898

9999

100-
VCTK
101-
~~~~
100+
VCTK_092
101+
~~~~~~~~
102102

103-
.. autoclass:: VCTK
103+
.. autoclass:: VCTK_092
104104
:members:
105105
:special-members: __getitem__
106106

107107

108-
VCTK_092
108+
DR_VCTK
109109
~~~~~~~~
110110

111-
.. autoclass:: VCTK_092
111+
.. autoclass:: DR_VCTK
112112
:members:
113113
:special-members: __getitem__
114114

docs/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ The :mod:`torchaudio` package consists of I/O, popular datasets and common audio
3939
compliance.kaldi
4040
kaldi_io
4141
utils
42+
prototype
4243

4344

4445
.. toctree::

0 commit comments

Comments
 (0)