forked from charlesxzb/model-zoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nntc.config.yaml
98 lines (88 loc) · 2.33 KB
/
nntc.config.yaml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
name: yolov3_320
gops: 36.342
time: true
model: $(home)/yolov3.cfg
weight: $(home)/yolov3-320.weights
input_shapes: "[1,3,320,320]"
batch_sizes: [1, 4, 8, 16]
int8_model: $(workdir)/$(name)_bmnetd_deploy_int8_unique_top.prototxt
int8_weight: $(workdir)/$(name)_bmnetd.int8umodel
BM1684:
fp_loops:
- build_env:
- BMCOMPILER_GROUP_SEARCH_COUNT=1
opt: "1"
dyn: "False"
fp_outdir_template: "static.opt1.fp32.{}b.compilation"
prec: FP32
- build_env:
- BMCOMPILER_GROUP_SEARCH_COUNT=1
opt: "2"
dyn: "True"
fp_outdir_template: "dynamic.opt2.fp32.{}b.compilation"
prec: FP32
BM1684X:
fp_loops:
- build_env:
- BMCOMPILER_GROUP_SEARCH_COUNT=1
opt: "1"
dyn: "False"
fp_outdir_template: "static.opt1.fp32.{}b.compilation"
prec: FP32
- build_env:
- BMCOMPILER_GROUP_SEARCH_COUNT=1
opt: "2"
dyn: "True"
fp_outdir_template: "dynamic.opt2.fp32.{}b.compilation"
prec: FP32
- build_env:
- BMCOMPILER_LAYER_DTYPE_MODE=auto
- BMCOMPILER_GROUP_SEARCH_COUNT=1
opt: "1"
dyn: "False"
fp_outdir_template: "static.opt1.fp16.{}b.compilation"
prec: FP16
- build_env:
- BMCOMPILER_LAYER_DTYPE_MODE=auto
- BMCOMPILER_GROUP_SEARCH_COUNT=1
opt: "2"
dyn: "True"
fp_outdir_template: "dynamic.opt2.fp16.{}b.compilation"
prec: FP16
int8_loops:
- build_env:
- BMCOMPILER_GROUP_SEARCH_COUNT=1
opt: "1"
dyn: "False"
int8_outdir_template: "static.opt1.int8.{}b.compilation"
- build_env:
- BMCOMPILER_GROUP_SEARCH_COUNT=1
opt: "2"
dyn: "True"
int8_outdir_template: "dynamic.opt2.int8.{}b.compilation"
fp_batch_sizes: $(batch_sizes)
fp_compile_options:
bmnetd
--model $(model)
--weight $(weight)
--shapes $(input_shapes)
--net_name $(name)
--target $(target)
--enable_profile true
time_only_cali:
python3 -m ufw.cali.cali_model
--model $(model)
--weight $(weight)
--input_shapes $(input_shapes)
--net_name $(name)
--cali_iteration 1
--target $(target)
--test_iterations 1
--debug_cmd "not_call_bmnetu;not_suspend;use_fake_data_to_test"
bmnetu_batch_sizes: $(batch_sizes)
bmnetu_options:
--model $(int8_model)
--weight $(int8_weight)
--target $(target)
--enable_profile True