class_docstr: Image to Patch Embedding
  
  Args:
      img_size (int): Image size.  Default: 224.
      patch_size (int): Patch token size. Default: 4.
      in_chans (int): Number of input image channels. Default: 3.
      embed_dim (int): Number of linear projection output channels. Default: 96.
      norm_layer (nn.Module, optional): Normalization layer. Default: None
code: def pad_to_multiple_of_patch_size(self, x):
      _, _, H, W = x.shape
      if W % self.patch_size[1] != 0:
          x = F.pad(x, (0, self.patch_size[1] - W % self.patch_size[1]))
      if H % self.patch_size[0] != 0:
          x = F.pad(
              x, (0, 0, 0, self.patch_size[0] - H % self.patch_size[0])
          )
      return x
  
imports: import math
  from functools import lru_cache
  from typing import List, Optional
  import torch
  import torch.nn
  import torch.nn.functional
  import torch.utils.checkpoint
  from vissl.config import AttrDict
  from vissl.models.model_helpers import DropPath, rearrange, to_2tuple, trunc_normal_
  from vissl.models.trunks import register_model_trunk
label_desc: Use image node_id 3 for calling the PatchEmbed obj's underlying member method code with example usage: obj.pad_to_multiple_of_patch_size(x) and returns: x