class_docstr: From DETR source: https://github.com/facebookresearch/detr
  (detr/models/detr.py)
class_docstr_tok: ["From","DETR","source",":","https",":","\/\/github.com\/facebookresearch\/detr","(","detr\/models\/detr.py",")"]
docstr: Get the Hungarian Loss
docstr_tok: ["Get","the","Hungarian","Loss"]
code: def get_loss(self, loss, outputs, targets, indices, num_boxes):
      """
      Get the Hungarian Loss
      """
      if loss == "labels":
          return self.loss_labels(outputs, targets, indices)
      if loss == "cardinality":
          with torch.no_grad():
              return self.loss_cardinality(outputs, targets)
      if loss == "boxes":
          return self.loss_boxes(outputs, targets, indices, num_boxes)
      if loss == "masks":
          return self.loss_masks(outputs, targets, indices, num_boxes)
      raise ValueError("No loss selected.")
  
imports: from typing import List, Optional, Tuple, Union
  import torch
label_desc: Use image node_id 10 for calling the SetCriterion obj's underlying member method code with example usage: obj.get_loss(loss, outputs, targets, indices, num_boxes) and returns: self, self, self, self