original_docstring: 
          Normalize, pad and batch the input images.
          
docstring: Normalize, pad and batch the input images.
docstring_tokens: Normalize pad and batch the input images .
code: def preprocess_image(self, batched_inputs):
          """
          Normalize, pad and batch the input images.
          """
          images = [x["image"].to(self.device) for x in batched_inputs]
          images = [self.normalizer(x) for x in images]
          images = ImageList.from_tensors(images,
                                          self.backbone.size_divisibility,
                                          pad_ref_long=True,
                                          pad_value=0.0)
          return images
code_tokens: def preprocess_image ( self , batched_inputs ) : images = [ x [ "image" ] . to ( self . device ) for x in batched_inputs ] images = [ self . normalizer ( x ) for x in images ] images = ImageList . from_tensors ( images , self . backbone . size_divisibility , pad_ref_long = True , pad_value = 0.0 ) return images
short_docstring: Normalize, pad and batch the input images.
short_docstring_tokens: Normalize pad and batch the input images .
comment: """
          Normalize, pad and batch the input images.
          """