Skip to content

Commit

Permalink
Fix argument order to map
Browse files Browse the repository at this point in the history
  • Loading branch information
JJGO committed Mar 9, 2020
1 parent 5ae677d commit d755667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion strategies/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ class RandomPruning(VisionPruning):

def model_masks(self):
params = self.params()
masks = map_importances(params, lambda x: random_mask(x, self.fraction))
masks = map_importances(lambda x: random_mask(x, self.fraction), params)
return masks

0 comments on commit d755667

Please sign in to comment.