class_docstr: Generalized Focal Loss network, see https://arxiv.org/abs/2006.04388
  
  Args:
      backbone (object): backbone instance
      neck (object): 'FPN' instance
      head (object): 'GFLHead' instance
class_docstr_tok: ["Generalized","Focal","Loss","network",",","see","https",":","\/\/arxiv.org\/abs\/2006.04388","Args",":","backbone","(","object",")",":","backbone","instance","neck","(","object",")",":","'FPN","'","instance","head","(","object",")",":","'GFLHead","'","instance"]
code: def get_loss(
      self,
  ):
      loss = {}
  
      head_outs = self._forward()
      loss_gfl = self.head.get_loss(head_outs, self.inputs)
      loss.update(loss_gfl)
      total_loss = paddle.add_n(list(loss.values()))
      loss.update({"loss": total_loss})
      return loss
  
file_path: PaddleDetection/ppdet/modeling/architectures/gfl.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import paddle
  from ppdet.core.workspace import register, create
  from .meta_arch import BaseArch
label_desc: Use image node_id 4 for calling the GFL obj's underlying member method code with example usage: obj.get_loss() and returns: loss