|
Algorithm 2 Compression of Edge–LPR algorithm. |
-
1:
initialization;
-
2:
input images set and its label y, training round n;
-
3:
train the previous network model T to obtain ;
-
4:
conduct channel pruning and get reward ,
-
5:
add regular constraint,
-
6:
classify using cross entropy loss, ;
-
7:
calculate the model accuracy Loss using Equations (8) and (10);
-
8:
calculate the model accuracy AP using Equations (15);
-
9:
ifthen
-
10:
repeat;
-
11:
update the previous weight network model T;
-
12:
end
-
13:
end if
-
14:
ifthen
-
15:
update the previous weight network model T;
-
16:
output L,;
-
17:
end if
|