dmlc--dgl
cd907cddfa
* add sse tutorial * add mxnet tutorial ci * fix ci * fix ci * fix ci * fix ci * fix ci * fix ci * Fix ci * Fix ci * Fix ci * fix ci * fix ci * fix ci * fix ci * fix ci * fix ci * Fix CI Fix CI image * permission fix * fix a bug in the code. * small fix * fix doc * fix ci * shorten the iters * fix * remove extra file * add load_backend api to dynamically switch to another backend * try fix * fix tutorial * fix tutorial * fix bug in tutorial
24 行
461 B
Bash
24 行
461 B
Bash
#!/bin/bash
|
|
# The working directory for this script will be "tests/scripts"
|
|
|
|
TUTORIAL_ROOT="../../tutorials"
|
|
|
|
function fail {
|
|
echo FAIL: $@
|
|
exit -1
|
|
}
|
|
|
|
pushd ${TUTORIAL_ROOT} > /dev/null
|
|
# Install requirements
|
|
pip3 install -r requirements.txt || fail "installing requirements"
|
|
|
|
# Test
|
|
export MPLBACKEND=Agg
|
|
for f in $(find . -name "*.py" ! -name "*_mx.py")
|
|
do
|
|
echo "Running tutorial ${f} ..."
|
|
python3 $f || fail "run ${f}"
|
|
done
|
|
|
|
popd > /dev/null
|