Skip to content

Commit

Permalink
fix fpgm prune criterion bug test=develop (PaddlePaddle#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
lijianshe02 authored Apr 23, 2020
1 parent a13fe40 commit 5b3bd16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddleslim/prune/criterion.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def geometry_median(group, graph):
x = w.repeat(channel_num, axis=0)
y = np.zeros_like(x)
for i in range(channel_num):
y[i * channel_num:(i + 1) * channel_num] = np.tile(channel_num,
y[i * channel_num:(i + 1) * channel_num] = np.tile(w[i],
(channel_num, 1))
tmp = np.sqrt(np.sum((x - y)**2, -1))
tmp = tmp.reshape((channel_num, channel_num))
Expand Down

0 comments on commit 5b3bd16

Please sign in to comment.