code: def __init__(self, reduction="mean", ignore_index=-100, **kwargs):
      super(SPINAttentionLoss, self).__init__()
      self.loss_func = nn.CrossEntropyLoss(
          weight=None, reduction=reduction, ignore_index=ignore_index
      )
  
file_path: PaddleOCR/ppocr/losses/rec_spin_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 SPINAttentionLoss object from inherited base classes: nn with example: obj = SPINAttentionLoss(reduction, ignore_index)