Skip to content
Merged

Fbsync #1038

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
09494ea
set version.
vincentqb Apr 16, 2020
4f76758
Re-sync with internal repository (#592)
cpuhrsch Apr 28, 2020
e243077
Set up ShipIt
cpuhrsch Apr 29, 2020
0d99b9d
20200428 pytorch/audio import
cpuhrsch Apr 29, 2020
e065a0f
Import torchaudio 20200528
mthrok May 28, 2020
ca14c17
Remove unnecessary config file from torchaudio
mthrok Jun 1, 2020
74bf397
Import torchaudio 20200605
jimchen90 Jun 5, 2020
0af3644
Change parameterized testing system to be compatible with unittest
Ben0mega Jun 10, 2020
9a2d018
Import torchaudio 20200618 #718
mthrok Jun 22, 2020
36414bc
Import torchaudio 20200714 #782 (#784)
mthrok Jul 17, 2020
fd7460e
remediation of S205607
StanislavGlebik Jul 18, 2020
4f19eef
remediation of S205607
StanislavGlebik Jul 18, 2020
57a88cd
Import torchaudio 20200723
mthrok Jul 27, 2020
18be43c
Support custom exception message (#41907)
gmagogsfm Aug 1, 2020
355c1fd
Import torchaudio 20200804
mthrok Aug 5, 2020
3019ce0
Remove .python3 markers
zertosh Aug 6, 2020
aa8c98d
Import torchaudio 20200821
mthrok Sep 22, 2020
7d5591f
Import torchaudio 20200922
mthrok Sep 23, 2020
e9e9eb1
Merge commit '77df44e' into fbsync
mthrok Oct 30, 2020
f4611b7
replace max-sentences with batch-size for dependencies
Oct 6, 2020
d0e2281
Import torchaudio #996 758f6c2
mthrok Nov 2, 2020
719ebb8
Import torchaudio #1004 5e54c77
mthrok Nov 11, 2020
c1f56ba
Merge commit '5e54c77' into fbsync
mthrok Nov 11, 2020
d14991a
Import torchaudio #1034 70f429a
mthrok Nov 16, 2020
9caa932
Merge commit '70f429a' into fbsync
mthrok Nov 16, 2020
7eead14
Import torchaudio #1066 4406a6b
mthrok Dec 8, 2020
8d8d835
Merge commit '4406a6b' into fbsync
mthrok Dec 8, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/build_docs/build_docs.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

set -ex
# shellcheck disable=SC1091
source ./packaging/pkg_helpers.bash
export NO_CUDA_PACKAGE=1
setup_env 0.8.0
Expand All @@ -10,4 +11,3 @@ pushd docs
pip install -r requirements.txt
make html
popd

17 changes: 7 additions & 10 deletions .circleci/build_docs/commit_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -ex


if [ "$2" == "" ]; then
echo call as $0 "<src>" "<target branch>"
echo call as "$0" "<src>" "<target branch>"
echo where src is the built documentation and
echo branch should be "master" or "1.7" or so
exit 1
Expand All @@ -13,24 +13,21 @@ fi
src=$1
target=$2

set -ex
echo "committing docs from ${src} to ${target}"

git checkout gh-pages
mkdir -p ./$target
rm -rf ./$target/*
cp -r ${src}/build/html/* ./$target
if [ "$target" == "master" ]; then
mkdir -p ./"${target}"
rm -rf ./"${target}"/*
cp -r "${src}/build/html/"* ./"$target"
if [ "${target}" == "master" ]; then
mkdir -p ./_static
rm -rf ./_static/*
cp -r ${src}/build/html/_static/* ./_static
cp -r "${src}/build/html/_static/"* ./_static
git add --all ./_static || true
fi
git add --all ./$target || true
git add --all ./"${target}" || true
git config user.email "[email protected]"
git config user.name "pytorchbot"
# If there aren't changes, don't make a commit; push is no-op
git commit -m "auto-generating sphinx docs" || true
git push -u origin gh-pages


5 changes: 4 additions & 1 deletion .circleci/build_docs/install_wheels.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#!/usr/bin/env bash

set -ex

# shellcheck disable=SC1091
source ./packaging/pkg_helpers.bash
export NO_CUDA_PACKAGE=1
setup_env 0.8.0
setup_wheel_python
setup_pip_pytorch_version
# pytorch is already installed
pip install --no-deps ~/workspace/torchaudio*

8 changes: 5 additions & 3 deletions .circleci/regenerate.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,23 +74,25 @@ def build_workflow_pair(btype, os_type, python_version, filter_branch, prefix=''

return w


def build_doc_job(filter_branch):
job = {
"name": "build_docs",
"python_version": "3.8",
"requires": ["binary_linux_wheel_py3.8",],
"requires": ["binary_linux_wheel_py3.8", ],
}

if filter_branch:
job["filters"] = gen_filter_branch_tree(filter_branch)
return [{"build_docs": job}]


def upload_doc_job(filter_branch):
job = {
"name": "upload_docs",
"context": "org-member",
"python_version": "3.8",
"requires": ["build_docs",],
"requires": ["build_docs", ],
}

if filter_branch:
Expand Down Expand Up @@ -184,7 +186,7 @@ def unittest_workflows(indentation=6):

if i == 0 and os_type == "linux" and device_type == "cpu":
jobs.append({
f"stylecheck": {
"stylecheck": {
"name": f"stylecheck_py{python_version}",
"python_version": python_version,
}
Expand Down
18 changes: 9 additions & 9 deletions torchaudio/datasets/commonvoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,15 @@ def __init__(self,
url = os.path.join(version, language + ext_archive)
else:
raise ValueError(
'Allowed language values are ``"tatar"``, ``"english"``, ``"german"``,'
'``"french"``, ``"welsh"``, ``"breton"``, ``"chuvash"``, ``"turkish"``, ``"kyrgyz"``,'
'``"irish"``, ``"kabyle"``, ``"catalan"``, ``"taiwanese"``, ``"slovenian"``,'
'``"italian"``, ``"dutch"``, ``"hakha chin"``, ``"esperanto"``, ``"estonian"``,'
'``"persian"``, ``"portuguese"``, ``"basque"``, ``"spanish"``, ``"chinese"``,'
'``"mongolian"``, ``"sakha"``, ``"dhivehi"``, ``"kinyarwanda"``, ``"swedish"``,'
'``"russian"``, ``"indonesian"``, ``"arabic"``, ``"tamil"``, ``"interlingua"``,'
'``"latvian"``, ``"japanese"``, ``"votic"``, ``"abkhaz"``, ``"cantonese"`` and'
'``"romansh sursilvan"``.'
'Allowed language values are "tatar", "english", "german",'
'"french", "welsh", "breton", "chuvash", "turkish", "kyrgyz",'
'"irish", "kabyle", "catalan", "taiwanese", "slovenian",'
'"italian", "dutch", "hakha chin", "esperanto", "estonian",'
'"persian", "portuguese", "basque", "spanish", "chinese",'
'"mongolian", "sakha", "dhivehi", "kinyarwanda", "swedish",'
'"russian", "indonesian", "arabic", "tamil", "interlingua",'
'"latvian", "japanese", "votic", "abkhaz", "cantonese" and'
'"romansh sursilvan".'
)

# Get string representation of 'root' in case Path object is passed
Expand Down