code: def __init__(
      self,
      out_channels,  # 90 + unknown + start + padding
      in_channels,
      enc_outchannles=128,
      hybrid_dec_rnn_layers=2,
      hybrid_dec_dropout=0,
      position_dec_rnn_layers=2,
      start_idx=0,
      max_text_length=40,
      mask=True,
      padding_idx=None,
      encode_value=False,
      **kwargs,
  ):
      super(RobustScannerHead, self).__init__()
  
      # encoder module
      self.encoder = ChannelReductionEncoder(
          in_channels=in_channels, out_channels=enc_outchannles
      )
  
      # decoder module
      self.decoder = RobustScannerDecoder(
          num_classes=out_channels,
          dim_input=in_channels,
          dim_model=enc_outchannles,
          hybrid_decoder_rnn_layers=hybrid_dec_rnn_layers,
          hybrid_decoder_dropout=hybrid_dec_dropout,
          position_decoder_rnn_layers=position_dec_rnn_layers,
          max_seq_len=max_text_length,
          start_idx=start_idx,
          mask=mask,
          padding_idx=padding_idx,
          encode_value=encode_value,
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import math
  import paddle
  from paddle import ParamAttr
  import paddle.nn
  import paddle.nn.functional
label_desc: Use image node_id 1 to create a new RobustScannerHead object from inherited base classes: nn with example: obj = RobustScannerHead(out_channels, in_channels, enc_outchannles, hybrid_dec_rnn_layers, hybrid_dec_dropout, position_dec_rnn_layers, start_idx, max_text_length, mask, padding_idx, encode_value)