torch.nn.utils.prune.global_unstructured
torch.nn.utils.prune.global_unstructured(parameters, pruning_method, importance_scores=None, **kwargs)
Globally prunes tensors corresponding to all parameters in
   "parameters" by applying the specified "pruning_method". Modifies
   modules in place by:


adding a named buffer called "name+'_mask'" corresponding to the
      binary mask applied to the parameter "name" by the pruning
      method.


replacing the parameter "name" by its pruned version, while the
      original (unpruned) parameter is stored in a new parameter named
      "name+'_orig'".


Parameters:
      * parameters (Iterable of (module, name)
        tuples) -- parameters of the model to prune in a global
        fashion, i.e. by aggregating all weights prior to deciding
        which ones to prune. module must be of type "nn.Module", and
        name must be a string.