test-nvidia/run

17 lines
345 B
Text
Raw Normal View History

2019-10-15 12:46:51 +02:00
#!/bin/sh
2020-05-15 13:17:58 +02:00
2020-09-05 12:59:40 +02:00
for tf in tf1 tf2; do
echo "== $tf"
vdir=`mktemp -d /tmp/test-nvidia.XXXXXX`
2020-05-15 13:17:58 +02:00
2020-09-05 12:59:40 +02:00
# Need Python 3.7 here as TF1 does not support 3.8
virtualenv -q -p /usr/bin/python3.7 $vdir >/dev/null
. $vdir/bin/activate
2020-05-15 13:17:58 +02:00
2020-09-05 12:59:40 +02:00
pip install -q -r assets/requirements-$tf.txt
python3 test-nvidia
2020-05-15 13:17:58 +02:00
2020-09-05 12:59:40 +02:00
deactivate
rm --preserve-root -rf $vdir
done