-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle_runs_GA.sh
executable file
·60 lines (56 loc) · 1.66 KB
/
single_runs_GA.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
MODEL_SUMMARY_FOLDER="../../resources/model_summaries/example_summaries"
MODEL_SUMMARY_NAME="MLperf_ad_kws_resnet.json"
PLATFORM="rpi"
PROFILING_COSTS_FOLDER="../../resources/profiling_results"
OUTPUT_FOLDER="../../resources/GA_results"
OUTPUT_NAME="results_single_run.csv"
POPULATION_SIZE=100
GENERATIONS=20
COUNT=20
VERBOSE="true"
for i in "$@"; do
case $i in
-p=* | --POPULATION=*)
POPULATION="${i#*=}"
shift # past argument=value
;;
-g=* | --GENERATIONS=*)
GENERATIONS="${i#*=}"
shift # past argument=value
;;
-m=* | --MODEL_SUMMARY_NAME=*)
MODEL_SUMMARY_NAME="${i#*=}"
shift # past argument=value
;;
-o=* | --OUTPUT_FOLDER=*)
OUTPUT_FOLDER="${i#*=}"
shift # past argument=value
;;
-p=* | --PROFILING_COSTS=*)
PROFILING_COSTS="${i#*=}"
shift # past argument=value
;;
-l=* | --PLATFORM=*)
PLATFORM="${i#*=}"
shift # past argument=value
;;
-d=* | --COUNT=*)
COUNT="${i#*=}"
shift # past argument=value
;;
-d=* | --VERBOSE=*)
VERBOSE="${i#*=}"
shift # past argument=value
;;
--default)
DEFAULT=YES
shift # past argument with no value
;;
-* | --*) ;;
*) ;;
esac
done
MODEL_SUMMARY="$MODEL_SUMMARY_FOLDER/$MODEL_SUMMARY_NAME"
PROFILING_COSTS="$PROFILING_COSTS_FOLDER/$PLATFORM"
make dse USBMON=0 COUNT=$COUNT MODEL_SUMMARY=$MODEL_SUMMARY OUTPUT_FOLDER=$OUTPUT_FOLDER PROFILING_COSTS=$PROFILING_COSTS OUTPUT_NAME=$OUTPUT_NAME ILP_MAPPING="false" POPULATION_SIZE=$POPULATION_SIZE GENERATIONS=$GENERATIONS VERBOSE=$VERBOSE