code: def __init__(
      self, structure_weight, loc_weight, loc_loss="mse", **kwargs
  ):
      super(SLALoss, self).__init__()
      self.loss_func = nn.CrossEntropyLoss(
          weight=None, reduction="mean"
      )
      self.structure_weight = structure_weight
      self.loc_weight = loc_weight
      self.loc_loss = loc_loss
      self.eps = 1e-12
  
file_path: PaddleOCR/ppocr/losses/table_att_loss.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import paddle
  from paddle import nn
  from paddle.nn import functional
label_desc: Use image node_id 1 to create a new SLALoss object from inherited base classes: nn with example: obj = SLALoss(structure_weight, loc_weight, loc_loss)