-
Notifications
You must be signed in to change notification settings - Fork 150
/
logfile_dnnc_pruned_miniGoogleNet.txt
77 lines (58 loc) · 2.42 KB
/
logfile_dnnc_pruned_miniGoogleNet.txt
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
#!/bin/bash
DNNDK_ROOT=$HOME/ML/DNNDK/tools
net=miniGoogleNet
model_dir=$HOME/ML/cifar10/deephi/miniGoogleNet/pruning/quantiz/decent_output
output_dir=$HOME/ML/cifar10/deephi/miniGoogleNet/pruning/quantiz/dnnc_output
echo "Compiling network: ${net}"
Compiling network: miniGoogleNet
dnnc --prototxt=${model_dir}/deploy.prototxt \
--caffemodel=${model_dir}/deploy.caffemodel \
--output_dir=${output_dir} \
--net_name=${net} \
--dpu=4096FA \
--cpu_arch=arm64 \
--mode=debug \
--save_kernel
[0;33m[DNNC][Warning] Only max pooling is supported, but [avg_pool_12_8x8_s1] layer has average pooling type.
[m[0;33m[DNNC][Warning] layer [avg_pool_12_8x8_s1] is not supported in DPU, deploy it in CPU instead.
[m[0;33m[DNNC][Warning] layer [loss] is not supported in DPU, deploy it in CPU instead.
[m
DNNC Kernel Information
1. Overview
kernel numbers : 4
kernel topology : miniGoogleNet_kernel_graph.jpg
2. Kernel Description in Detail
kernel id : 0
kernel name : miniGoogleNet_0
type : DPUKernel
nodes : NA
input node(s) : conv1_3x3_s1(0)
output node(s) : inception_11a_output(0)
kernel id : 1
kernel name : miniGoogleNet_1
type : CPUKernel
nodes : NA
input node(s) : avg_pool_12_8x8_s1
output node(s) : avg_pool_12_8x8_s1
kernel id : 2
kernel name : miniGoogleNet_2
type : DPUKernel
nodes : NA
input node(s) : loss_classifier(0)
output node(s) : loss_classifier(0)
kernel id : 3
kernel name : miniGoogleNet_3
type : CPUKernel
nodes : NA
input node(s) : loss
output node(s) : loss
echo " copying dpu elf file into ../../zcu102/pruned/model/arm64_4096 "
copying dpu elf file into ../../zcu102/pruned/model/arm64_4096
cp ${output_dir}/dpu_${net}\_*.elf ${output_dir}/../../../zcu102/pruned/model/arm64_4096/
echo " copying the test images to be used by the ZCU102"
copying the test images to be used by the ZCU102
cp -r $HOME/ML/cifar10/input/cifar10_jpg/test ${output_dir}/../../../zcu102/test_images
mv $HOME/ML/${net}_kernel* $HOME/ML/cifar10/deephi/miniGoogleNet/pruning/quantiz/dnnc_output
cd $HOME/ML/cifar10/deephi/miniGoogleNet/zcu102/pruned
#gorce a soft link to the testing images
ln -nsf ../test_images ./test_images