code: def __init__(
      self,
      in_channels,
      out_channels,
      sDim,
      attDim,
      max_len_labels,
      time_step=25,
      beam_width=5,
      **kwargs,
  ):
      super(AsterHead, self).__init__()
      self.num_classes = out_channels
      self.in_planes = in_channels
      self.sDim = sDim
      self.attDim = attDim
      self.max_len_labels = max_len_labels
      self.decoder = AttentionRecognitionHead(
          in_channels, out_channels, sDim, attDim, max_len_labels
      )
      self.time_step = time_step
      self.embeder = Embedding(self.time_step, in_channels)
      self.beam_width = beam_width
      self.eos = self.num_classes - 3
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import sys
  import paddle
  from paddle import nn
  from paddle.nn import functional
label_desc: Use image node_id 1 to create a new AsterHead object from inherited base classes: nn with example: obj = AsterHead(in_channels, out_channels, sDim, attDim, max_len_labels, time_step, beam_width)