class_docstr: Image to Patch Embedding
      
class_docstr_tok: ["Image","to","Patch","Embedding"]
code: def __init__(
      self,
      img_size=(224, 224),
      patch_size=16,
      in_chans=3,
      embed_dim=768,
      lr_factor=0.01,
  ):
      super().__init__()
      self.img_size = img_size
      self.patch_size = patch_size
      self.proj = nn.Conv2D(
          in_chans,
          embed_dim,
          kernel_size=patch_size,
          stride=patch_size,
          weight_attr=ParamAttr(learning_rate=lr_factor),
          bias_attr=ParamAttr(learning_rate=lr_factor),
      )
  
imports: import paddle
  import paddle.nn
  import paddle.nn.functional
  import numpy
  import math
  from paddle import ParamAttr
  from paddle.regularizer import L2Decay
  from paddle.nn.initializer import Constant, TruncatedNormal
  from ppdet.modeling.shape_spec import ShapeSpec
  from ppdet.core.workspace import register, serializable
  from .transformer_utils import zeros_, DropPath, Identity, window_partition, window_unpartition
  from ..initializer import linear_init_
label_desc: Use image node_id 1 to create a new PatchEmbed object from inherited base classes: nn with example: obj = PatchEmbed(img_size, patch_size, in_chans, embed_dim, lr_factor)