hunk.code_window:     out_indices = None
       if kwargs.pop('features_only', False):
           load_strict, features = False, True
           kwargs.pop('num_classes', 0)
           out_indices = kwargs.pop('out_indices', (0, 1, 2, 3, 4))
  
hunk.labels: keep keep replace keep keep
hunk.after_edit:         features = True
  
hunk.file_path: timm/models/resnet.py
hunk.type: replace
file: """ Layer/Module Helpers
  
  Hacked together by Ross Wightman
  """
  from itertools import repeat
  from torch._six import container_abcs
  
  
  # From PyTorch internals
  def _ntuple(n):
      def parse(x):
          if isinstance(x, container_abcs.Iterable):
              return x
          return tuple(repeat(x, n))
      return parse
  
  
  tup_single = _ntuple(1)
  tup_pair = _ntuple(2)
  tup_triple = _ntuple(3)
  tup_quadruple = _ntuple(4)
  
  
  
  
  
  
  