Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Fix a small bug in the dependency_aware mode. (#3143)
Browse files Browse the repository at this point in the history
Signed-off-by: Ningxin <Ningxin.Zheng@microsoft.com>
  • Loading branch information
zheng-ningxin authored Dec 2, 2020
1 parent 95f731e commit aea82f2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ def _dependency_calc_mask(self, sparsities, wrappers, wrappers_idx, channel_dset
sparsity, _w, _w_idx)
num_total = current_weight.size(0)
if num_total < 2 or num_prune < 1:
return base_mask
masks[name] = base_mask
continue
_tmp_mask = self.get_mask(
base_mask, current_weight, num_prune, _w, _w_idx, channel_masks)

Expand Down

0 comments on commit aea82f2

Please sign in to comment.