-
Notifications
You must be signed in to change notification settings - Fork 1
/
run.sh
executable file
·43 lines (36 loc) · 1.33 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
set -e
# Use this flag to set the type of eval you want to run.
# 0: fast (minutes)
# 1: medium/nightly (<=2 hours)
# 2: full
# Defaults to full.
export EVAL_TYPE="${EVAL_TYPE:-2}"
[ "$EVAL_TYPE" -eq "0" ] || [ "$EVAL_TYPE" -eq "1" ] || [ "$EVAL_TYPE" -eq "2" ] || exit 1
# Test the exact matcher in TVM.
# TODO(@gussmith23) Add more invocations of TVM tests.
TVM_FFI=ctypes python3 -m pytest -v tvm/tests/python/relay/test_exact_matcher.py
# Test the 3LA version of Glenside.
cargo test --manifest-path glenside/Cargo.toml --no-default-features --features "tvm"
# Test import of BERT into Relay.
# We don't actually use BERT, so we'll disable this for now.
# python3 bert_onnx.py
# Test end-to-end run of ResMLP
# TODO(@gussmith23) Disabling this for now, as even 1 image doesn't terminate.
# TODO(@gussmith23) Add "fast", "nightly", and "full" eval settings (perhaps in
# the Dockerfile? Perhaps as an env var?)
cd e2e/resmlp
# TODO(@gussmith23 @slyubomirsky) Before re-enabling this, please filter the
# output of the simulator e.g. using grep. It spams the logs.
if [ "$EVAL_TYPE" -ge "1" ]
then
echo "Running trial.py disabled for now; takes too long"
# python3 trial.py --num-images 1 --use-accelerators
fi
# python3 digest.py
cd ../..
#count relay ops in models
python3 count_ops.py
cd flexmatch/tests
./get_table_stats.sh
cd ../..