class_docstr: Base class for all pruners which use a PruningMethod (implemented in
class_docstr_tok: ["Base","class","for","all","pruners","which","use","a","PruningMethod","(","implemented","in"]
code: def __init__(
      self, model: _torch.nn.Module, config: _OptimizationConfig
  ):
      super().__init__(model, config)
      self._pruner_info = {}
  
file_path: coremltools/coremltools/optimize/torch/pruning/_base_pruner.py
imports: import copy
  import logging
  from typing import Optional
  from typing import Tuple
  import torch
  from coremltools.optimize.torch._utils.torch_utils import get_eval_model
  from coremltools.optimize.torch.base_model_optimizer import BaseModelOptimizer
  from coremltools.optimize.torch.base_model_optimizer import _Report
  from coremltools.optimize.torch.optimization_config import OptimizationConfig
  from coremltools.optimize.torch.pruning._utils import get_global_sparsity_summaries
label_desc: Use image node_id 1 to create a new BasePrunerWithPruningMethod object from inherited base classes: BasePruner with example: obj = BasePrunerWithPruningMethod(model, config)