Skip to content

Commit

Permalink
Fbsync (pytorch#1038)
Browse files Browse the repository at this point in the history
* Import torchaudio pytorch#1034 70f429a

Summary: Import torchaudio pytorch#1027 0cf4b8a

Reviewed By: vincentqb, cpuhrsch

Differential Revision: D24958707

fbshipit-source-id: d06dd6b59197cc2c16bec5a9012cbf33a172b6b3

* Import torchaudio pytorch#1066 4406a6b

Summary: Import up to pytorch#1066

Reviewed By: cpuhrsch

Differential Revision: D25373068

fbshipit-source-id: 890d36a25259b93428b3037c3123ff5a2cacfa04
  • Loading branch information
mthrok authored Dec 8, 2020
1 parent 69d716c commit a2085b8
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 24 deletions.
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 "soumith+bot@pytorch.org"
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

0 comments on commit a2085b8

Please sign in to comment.