-
Notifications
You must be signed in to change notification settings - Fork 622
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- disable MXNet tests are MXNet is no longer actively developed Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
- Loading branch information
Showing
13 changed files
with
114 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#!/bin/bash -e | ||
bash -e ./test_tf.sh | ||
bash -e ./test_paddle.sh | ||
bash -e ./test_mxnet.sh | ||
bash -e ./test_pytorch.sh | ||
bash -e ./test_jax.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
#!/bin/bash -e | ||
# used pip packages | ||
pip_packages='${python_test_runner_package} numpy mxnet' | ||
target_dir=./dali/test/python | ||
# #!/bin/bash -e | ||
# # used pip packages | ||
# pip_packages='${python_test_runner_package} numpy mxnet' | ||
# target_dir=./dali/test/python | ||
|
||
one_config_only=true | ||
# one_config_only=true | ||
|
||
do_once() { | ||
NUM_GPUS=$(nvidia-smi -L | wc -l) | ||
} | ||
# do_once() { | ||
# NUM_GPUS=$(nvidia-smi -L | wc -l) | ||
# } | ||
|
||
test_body() { | ||
# it takes very long time to run it with sanitizers on and provides little value so turn it off | ||
if [ -z "$DALI_ENABLE_SANITIZERS" ]; then | ||
for fw in "mxnet"; do | ||
python test_RN50_data_fw_iterators.py --framework ${fw} --gpus ${NUM_GPUS} -b 13 \ | ||
--workers 3 --prefetch 2 -i 100 --epochs 2 | ||
python test_RN50_data_fw_iterators.py --framework ${fw} --gpus ${NUM_GPUS} -b 13 \ | ||
--workers 3 --prefetch 2 -i 2 --epochs 2 --fp16 | ||
done | ||
fi | ||
${python_invoke_test} -m '(?:^|[\b_\./-])[Tt]est.*mxnet*' test_fw_iterators_detection.py | ||
${python_invoke_test} -m '(?:^|[\b_\./-])[Tt]est.*mxnet*' test_fw_iterators.py | ||
${python_invoke_test} -m '(?:^|[\b_\./-])[Tt]est.*gluon*' test_fw_iterators.py | ||
} | ||
# test_body() { | ||
# # it takes very long time to run it with sanitizers on and provides little value so turn it off | ||
# if [ -z "$DALI_ENABLE_SANITIZERS" ]; then | ||
# for fw in "mxnet"; do | ||
# python test_RN50_data_fw_iterators.py --framework ${fw} --gpus ${NUM_GPUS} -b 13 \ | ||
# --workers 3 --prefetch 2 -i 100 --epochs 2 | ||
# python test_RN50_data_fw_iterators.py --framework ${fw} --gpus ${NUM_GPUS} -b 13 \ | ||
# --workers 3 --prefetch 2 -i 2 --epochs 2 --fp16 | ||
# done | ||
# fi | ||
# ${python_invoke_test} -m '(?:^|[\b_\./-])[Tt]est.*mxnet*' test_fw_iterators_detection.py | ||
# ${python_invoke_test} -m '(?:^|[\b_\./-])[Tt]est.*mxnet*' test_fw_iterators.py | ||
# ${python_invoke_test} -m '(?:^|[\b_\./-])[Tt]est.*gluon*' test_fw_iterators.py | ||
# } | ||
|
||
pushd ../.. | ||
source ./qa/test_template.sh | ||
popd | ||
# pushd ../.. | ||
# source ./qa/test_template.sh | ||
# popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#!/bin/bash -e | ||
bash -e ./test_tf.sh | ||
bash -e ./test_mxnet.sh | ||
bash -e ./test_pytorch.sh | ||
bash -e ./test_jax.sh | ||
bash -e ./test_no_fw.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
#!/bin/bash -e | ||
# used pip packages | ||
# #!/bin/bash -e | ||
# # used pip packages | ||
|
||
pip_packages='mxnet' | ||
# pip_packages='mxnet' | ||
|
||
test_body() { | ||
# test code | ||
echo "---------Testing MXNET;DALI----------" | ||
( set -x && python -c "import mxnet; import nvidia.dali.plugin.mxnet" ) | ||
echo "---------Testing DALI;MXNET----------" | ||
( set -x && python -c "import nvidia.dali.plugin.mxnet; import mxnet" ) | ||
} | ||
# test_body() { | ||
# # test code | ||
# echo "---------Testing MXNET;DALI----------" | ||
# ( set -x && python -c "import mxnet; import nvidia.dali.plugin.mxnet" ) | ||
# echo "---------Testing DALI;MXNET----------" | ||
# ( set -x && python -c "import nvidia.dali.plugin.mxnet; import mxnet" ) | ||
# } | ||
|
||
pushd ../../ | ||
source ./qa/test_template.sh | ||
popd | ||
# pushd ../../ | ||
# source ./qa/test_template.sh | ||
# popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#!/bin/bash -e | ||
./test_mxnet.sh | ||
./test_cupy.sh | ||
./test_pytorch.sh | ||
./test_pytorch_cupy.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
#!/bin/bash -e | ||
# used pip packages | ||
pip_packages='${python_test_runner_package} numpy mxnet psutil' | ||
target_dir=./dali/test/python | ||
# #!/bin/bash -e | ||
# # used pip packages | ||
# pip_packages='${python_test_runner_package} numpy mxnet psutil' | ||
# target_dir=./dali/test/python | ||
|
||
test_body() { | ||
${python_invoke_test} -m '(?:^|[\b_\./-])[Tt]est.*mxnet' test_dltensor_operator.py | ||
${python_invoke_test} test_external_source_parallel_mxnet.py | ||
${python_invoke_test} --attr 'mxnet' test_external_source_impl_utils.py | ||
${python_invoke_test} --attr 'mxnet' test_pipeline_debug.py | ||
} | ||
# test_body() { | ||
# ${python_invoke_test} -m '(?:^|[\b_\./-])[Tt]est.*mxnet' test_dltensor_operator.py | ||
# ${python_invoke_test} test_external_source_parallel_mxnet.py | ||
# ${python_invoke_test} --attr 'mxnet' test_external_source_impl_utils.py | ||
# ${python_invoke_test} --attr 'mxnet' test_pipeline_debug.py | ||
# } | ||
|
||
pushd ../.. | ||
source ./qa/test_template.sh | ||
popd | ||
# pushd ../.. | ||
# source ./qa/test_template.sh | ||
# popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#!/bin/bash -e | ||
bash -e ./test_mxnet.sh | ||
bash -e ./test_tf.sh | ||
bash -e ./test_paddle.sh | ||
bash -e ./test_pytorch.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
#!/bin/bash -e | ||
# #!/bin/bash -e | ||
|
||
# used pip packages | ||
pip_packages='jupyter matplotlib<3.5.3 mxnet' | ||
target_dir=./docs/examples/ | ||
# # used pip packages | ||
# pip_packages='jupyter matplotlib<3.5.3 mxnet' | ||
# target_dir=./docs/examples/ | ||
|
||
do_once() { | ||
mkdir -p idx_files | ||
} | ||
# do_once() { | ||
# mkdir -p idx_files | ||
# } | ||
|
||
test_body() { | ||
# dummy | ||
exclude_files="#" | ||
# test_body() { | ||
# # dummy | ||
# exclude_files="#" | ||
|
||
# test code | ||
find frameworks/mxnet -name "*.ipynb" | sed "/${exclude_files}/d" | xargs -i jupyter nbconvert \ | ||
--to notebook --inplace --execute \ | ||
--ExecutePreprocessor.kernel_name=python${PYVER:0:1} \ | ||
--ExecutePreprocessor.timeout=600 {} | ||
jupyter nbconvert --to notebook --inplace --execute \ | ||
--ExecutePreprocessor.kernel_name=python${PYVER:0:1} \ | ||
--ExecutePreprocessor.timeout=600 use_cases/mxnet/mxnet-resnet50.ipynb | ||
} | ||
# # test code | ||
# find frameworks/mxnet -name "*.ipynb" | sed "/${exclude_files}/d" | xargs -i jupyter nbconvert \ | ||
# --to notebook --inplace --execute \ | ||
# --ExecutePreprocessor.kernel_name=python${PYVER:0:1} \ | ||
# --ExecutePreprocessor.timeout=600 {} | ||
# jupyter nbconvert --to notebook --inplace --execute \ | ||
# --ExecutePreprocessor.kernel_name=python${PYVER:0:1} \ | ||
# --ExecutePreprocessor.timeout=600 use_cases/mxnet/mxnet-resnet50.ipynb | ||
# } | ||
|
||
pushd ../.. | ||
source ./qa/test_template.sh | ||
popd | ||
# pushd ../.. | ||
# source ./qa/test_template.sh | ||
# popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
#!/bin/bash -e | ||
# used pip packages | ||
pip_packages='torch mxnet' | ||
target_dir=./dali/test/python | ||
one_config_only=true | ||
# #!/bin/bash -e | ||
# # used pip packages | ||
# pip_packages='torch mxnet' | ||
# target_dir=./dali/test/python | ||
# one_config_only=true | ||
|
||
do_once() { | ||
NUM_GPUS=$(nvidia-smi -L | wc -l) | ||
} | ||
# do_once() { | ||
# NUM_GPUS=$(nvidia-smi -L | wc -l) | ||
# } | ||
|
||
test_body() { | ||
for fw in "mxnet"; do | ||
python test_RN50_data_fw_iterators.py --framework ${fw} --gpus ${NUM_GPUS} -b 13 \ | ||
--workers 3 --separate_queue --cpu_size 3 --gpu_size 2 --iters 32 --epochs 2 | ||
done | ||
} | ||
# test_body() { | ||
# for fw in "mxnet"; do | ||
# python test_RN50_data_fw_iterators.py --framework ${fw} --gpus ${NUM_GPUS} -b 13 \ | ||
# --workers 3 --separate_queue --cpu_size 3 --gpu_size 2 --iters 32 --epochs 2 | ||
# done | ||
# } | ||
|
||
pushd ../.. | ||
source ./qa/test_template.sh | ||
popd | ||
# pushd ../.. | ||
# source ./qa/test_template.sh | ||
# popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#!/bin/bash -e | ||
bash -e ./test_tf.sh | ||
bash -e ./test_paddle.sh | ||
bash -e ./test_mxnet.sh | ||
bash -e ./test_pytorch.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
#!/bin/bash -e | ||
# used pip packages | ||
pip_packages='mxnet' | ||
target_dir=./dali/test/python | ||
one_config_only=true | ||
# #!/bin/bash -e | ||
# # used pip packages | ||
# pip_packages='mxnet' | ||
# target_dir=./dali/test/python | ||
# one_config_only=true | ||
|
||
do_once() { | ||
NUM_GPUS=$(nvidia-smi -L | wc -l) | ||
} | ||
# do_once() { | ||
# NUM_GPUS=$(nvidia-smi -L | wc -l) | ||
# } | ||
|
||
test_body() { | ||
for fw in "mxnet"; do | ||
python test_RN50_data_fw_iterators.py --framework ${fw} --gpus ${NUM_GPUS} -b 13 \ | ||
--workers 3 --prefetch 2 --epochs 3 | ||
done | ||
} | ||
# test_body() { | ||
# for fw in "mxnet"; do | ||
# python test_RN50_data_fw_iterators.py --framework ${fw} --gpus ${NUM_GPUS} -b 13 \ | ||
# --workers 3 --prefetch 2 --epochs 3 | ||
# done | ||
# } | ||
|
||
pushd ../.. | ||
source ./qa/test_template.sh | ||
popd | ||
# pushd ../.. | ||
# source ./qa/test_template.sh | ||
# popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters