Skip to content

Commit

Permalink
Fix pruner base class bug. (IntelLabs#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
innerNULL authored and nzmora committed Jan 22, 2019
1 parent 2438116 commit 994e58d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distiller/pruning/pruner.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ def threshold_model(model, threshold):
"""
for name, p in model.named_parameters():
if 'weight' in name:
mask = distiller.threshold_mask(param.data, threshold)
mask = distiller.threshold_mask(p.data, threshold)
p.data = p.data.mul_(mask)

0 comments on commit 994e58d

Please sign in to comment.