code: def __init__(self, **kwargs):
      super(PRENLoss, self).__init__()
      # note: 0 is padding idx
      self.loss_func = nn.CrossEntropyLoss(
          reduction="mean", ignore_index=0
      )
  
file_path: PaddleOCR/ppocr/losses/rec_pren_loss.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from paddle import nn
label_desc: Use image node_id 1 to create a new PRENLoss object from inherited base classes: nn with example: obj = PRENLoss()