code: def __init__(self, **kwargs):
      super(AttentionLoss, self).__init__()
      self.loss_func = nn.CrossEntropyLoss(
          weight=None, reduction="none"
      )
  
file_path: PaddleOCR/ppocr/losses/rec_att_loss.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import paddle
  from paddle import nn
label_desc: Use image node_id 1 to create a new AttentionLoss object from inherited base classes: nn with example: obj = AttentionLoss()