code: def __init__(self, inplanes, planes, stride=1, downsample=None):
      super(AsterBlock, self).__init__()
      self.conv1 = conv1x1(inplanes, planes, stride)
      self.bn1 = nn.BatchNorm2D(planes)
      self.relu = nn.ReLU()
      self.conv2 = conv3x3(planes, planes)
      self.bn2 = nn.BatchNorm2D(planes)
      self.downsample = downsample
      self.stride = stride
  
file_path: PaddleOCR/ppocr/modeling/backbones/rec_resnet_aster.py
imports: import paddle
  import paddle.nn
  import sys
  import math
label_desc: Use image node_id 1 to create a new AsterBlock object from inherited base classes: nn with example: obj = AsterBlock(inplanes, planes, stride, downsample)