Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Torchaudio
Commits
7f591c62
"benchmarks/vscode:/vscode.git/clone" did not exist on "57821dd219e2011a62df96dfaeed36538de11882"
Unverified
Commit
7f591c62
authored
Jul 07, 2021
by
Caroline Chen
Committed by
GitHub
Jul 07, 2021
Browse files
Remove torchscript bc test references (#1623)
parent
7332dfab
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
0 additions
and
181 deletions
+0
-181
.circleci/torchscript_bc_test/common.sh
.circleci/torchscript_bc_test/common.sh
+0
-71
.circleci/torchscript_bc_test/environment.yml
.circleci/torchscript_bc_test/environment.yml
+0
-18
.circleci/torchscript_bc_test/generate_objects.sh
.circleci/torchscript_bc_test/generate_objects.sh
+0
-26
.circleci/torchscript_bc_test/setup_master_envs.sh
.circleci/torchscript_bc_test/setup_master_envs.sh
+0
-17
.circleci/torchscript_bc_test/setup_release_envs.sh
.circleci/torchscript_bc_test/setup_release_envs.sh
+0
-18
.circleci/torchscript_bc_test/validate_objects.sh
.circleci/torchscript_bc_test/validate_objects.sh
+0
-30
test/README.md
test/README.md
+0
-1
No files found.
.circleci/torchscript_bc_test/common.sh
deleted
100644 → 0
View file @
7332dfab
#!/usr/bin/env bash
declare
-a
TORCHAUDIO_VERSIONS
=(
"0.6.0"
)
declare
-a
PYTHON_VERSIONS
=(
"3.6"
"3.7"
"3.8"
)
export
TORCHAUDIO_VERSIONS
export
PYTHON_VERSIONS
export
KALDI_ROOT
=
"
${
KALDI_ROOT
:-
$HOME
}
"
# Just to disable warning emitted from kaldi_io
_this_dir
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
>
/dev/null 2>&1
&&
pwd
)
"
_root_dir
=
"
$(
git rev-parse
--show-toplevel
)
"
_conda_dir
=
"
${
_root_dir
}
/conda"
case
"
$(
uname
-s
)
"
in
Darwin
*
)
_os
=
"MacOSX"
;;
*
)
_os
=
"Linux"
esac
install_conda
()
{
if
[
!
-d
"
${
_conda_dir
}
"
]
;
then
printf
"* Installing conda
\n
"
wget
-nv
-O
miniconda.sh
"http://repo.continuum.io/miniconda/Miniconda3-latest-
${
_os
}
-x86_64.sh"
bash ./miniconda.sh
-b
-f
-p
"
${
_conda_dir
}
"
rm
miniconda.sh
fi
}
init_conda
()
{
eval
"
$(
"
${
_conda_dir
}
/bin/conda"
shell.bash hook
)
"
}
get_name
()
{
echo
"
${
1
}
-py
${
2
}
"
}
get_env_dir
()
{
echo
"
${
_root_dir
}
/envs/
$(
get_name
"
$1
"
"
$2
"
)
"
}
create_env
()
{
env_dir
=
"
$(
get_env_dir
"
$1
"
"
$2
"
)
"
if
[
!
-d
"
${
env_dir
}
"
]
;
then
printf
"* Creating environment torchaudio: %s, Python: %s
\n
"
"
$1
"
"
$2
"
conda create
-q
--prefix
"
${
env_dir
}
"
-y
python
=
"
$2
"
fi
}
activate_env
()
{
printf
"* Activating environment torchaudio: %s, Python: %s
\n
"
"
$1
"
"
$2
"
conda activate
"
$(
get_env_dir
"
$1
"
"
$2
"
)
"
}
install_release
()
{
printf
"* Installing torchaudio: %s
\n
"
"
$1
"
conda
install
-y
-q
torchaudio
=
"
$1
"
packaging
-c
pytorch
# packaging is required in test to validate the torchaudio version for dump
}
install_build_dependencies
()
{
printf
"* Installing torchaudio dependencies except PyTorch - (Python: %s)
\n
"
"
$1
"
conda
env
update
-q
--file
"
${
_this_dir
}
/environment.yml"
--prune
}
build_master
()
{
printf
"* Installing PyTorch (py%s)
\n
"
"
$1
"
conda
install
-y
-q
pytorch
"cpuonly"
-c
pytorch-nightly
printf
"* Installing torchaudio
\n
"
cd
"
${
_root_dir
}
"
||
exit
1
git submodule update
--init
--recursive
BUILD_RNNT
=
1
BUILD_SOX
=
1 python setup.py clean
install
}
.circleci/torchscript_bc_test/environment.yml
deleted
100644 → 0
View file @
7332dfab
channels
:
-
defaults
dependencies
:
-
flake8
-
numpy
-
pytest
-
pytest-cov
-
codecov
-
librosa>=0.8.0
-
llvmlite==0.31
# See https://github.com/pytorch/audio/pull/766
-
pip
-
pip
:
-
cmake
-
ninja
-
kaldi-io
-
scipy
-
parameterized
-
numba==0.48
# See https://github.com/librosa/librosa/issues/1160
.circleci/torchscript_bc_test/generate_objects.sh
deleted
100755 → 0
View file @
7332dfab
#!/usr/bin/env bash
set
-e
this_dir
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
>
/dev/null 2>&1
&&
pwd
)
"
pushd
"
${
this_dir
}
"
.
"common.sh"
popd
init_conda
# Move to test directory so that the checked out torchaudio source
# will not shadow the conda-installed version of torchaudio
cd test
for
torchaudio
in
"
${
TORCHAUDIO_VERSIONS
[@]
}
"
;
do
for
python
in
"
${
PYTHON_VERSIONS
[@]
}
"
;
do
activate_env
"
${
torchaudio
}
"
"
${
python
}
"
python
-m
torch.utils.collect_env
printf
"***********************************************************
\n
"
printf
"* Generating
\n
"
printf
" Objects: Python: %s, torchaudio: %s
\n
"
"
${
python
}
"
"
${
torchaudio
}
"
printf
"***********************************************************
\n
"
./torchscript_bc_test/main.py
--mode
generate
--version
"
${
torchaudio
}
"
done
done
.circleci/torchscript_bc_test/setup_master_envs.sh
deleted
100755 → 0
View file @
7332dfab
#!/usr/bin/env bash
set
-e
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
.
"common.sh"
install_conda
init_conda
# Install torchaudio environments
for
python
in
"
${
PYTHON_VERSIONS
[@]
}
"
;
do
create_env master
"
${
python
}
"
activate_env master
"
${
python
}
"
install_build_dependencies
"
${
python
}
"
build_master
"
${
python
}
"
done
.circleci/torchscript_bc_test/setup_release_envs.sh
deleted
100755 → 0
View file @
7332dfab
#!/usr/bin/env bash
set
-e
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
.
"common.sh"
install_conda
init_conda
# Install torchaudio environments
for
torchaudio
in
"
${
TORCHAUDIO_VERSIONS
[@]
}
"
;
do
for
python
in
"
${
PYTHON_VERSIONS
[@]
}
"
;
do
create_env
"
${
torchaudio
}
"
"
${
python
}
"
activate_env
"
${
torchaudio
}
"
"
${
python
}
"
install_release
"
${
torchaudio
}
"
done
done
.circleci/torchscript_bc_test/validate_objects.sh
deleted
100755 → 0
View file @
7332dfab
#!/usr/bin/env bash
set
-e
this_dir
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
>
/dev/null 2>&1
&&
pwd
)
"
pushd
"
${
this_dir
}
"
.
"common.sh"
popd
init_conda
# Move to test directory so that the checked out torchaudio source
# will not shadow the conda-installed version of torchaudio
cd test
# Validate torchscript objects for each
for
runtime_python
in
"
${
PYTHON_VERSIONS
[@]
}
"
;
do
activate_env master
"
${
runtime_python
}
"
python
-m
torch.utils.collect_env
for
object_torchaudio
in
"
${
TORCHAUDIO_VERSIONS
[@]
}
"
;
do
for
object_python
in
"
${
PYTHON_VERSIONS
[@]
}
"
;
do
printf
"***********************************************************
\n
"
printf
"* Validating
\n
"
printf
" Runtime: Python: %s, torchaudio: master (%s)
\n
"
"
${
runtime_python
}
"
"
$(
python
-c
'import torchaudio;print(torchaudio.__version__)'
)
"
printf
" Objects: Python: %s, torchaudio: %s
\n
"
"
${
object_python
}
"
"
${
object_torchaudio
}
"
printf
"***********************************************************
\n
"
./torchscript_bc_test/main.py
--mode
validate
--version
"
${
object_torchaudio
}
"
done
done
done
test/README.md
View file @
7f591c62
# Torchaudio Test Suite
-
[
Unit Test
](
./torchaudio_unittest/
)
-
[
Torchscript Backward Compatibility Test
](
./torchscript_bc_test/
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment