forked from charlesxzb/model-zoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nntc.config.yaml
99 lines (89 loc) · 2.36 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
99
---
name: wrn50
gops: 21.244
time: true
model: $(home)/deploy_wrn50-2.prototxt
weight: $(home)/wrn50-2.caffemodel
input_shapes: "[1,3,224,224]"
batch_sizes: [1, 4, 8, 16]
int8_model: $(workdir)/$(name)_bmnetc_deploy_int8_unique_top.prototxt
int8_weight: $(workdir)/$(name)_bmnetc.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:
bmnetc
--model $(model)
--weight $(weight)
--shapes $(input_shapes)
--net_name $(name)
--target $(target)
--cmp 1
--enable_profile true
time_only_cali:
python3 -m ufw.cali.cali_model
--model $(model)
--weights $(weight)
--input_shapes $(input_shapes)
--net_name $(name)
--target $(target)
--cali_iteration 1
--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