class_docstr: CrossEntropyLossCost.
  
  Args:
      weight (int | float, optional): loss weight. Defaults to 1.
      use_sigmoid (bool, optional): Whether the prediction uses sigmoid
              of softmax. Defaults to True.
code: def __init__(self, weight=1.0, use_sigmoid=True):
      assert use_sigmoid, "use_sigmoid = False is not supported yet."
      self.weight = weight
      self.use_sigmoid = use_sigmoid
  
file_path: dinov2/dinov2/eval/segmentation_m2f/models/losses/match_costs.py
imports: import torch
  import torch.nn.functional
  from ..builder import MATCH_COST
label_desc: Use image node_id 1 to create a new CrossEntropyLossCost object  with example: obj = CrossEntropyLossCost(weight, use_sigmoid)