code: def __init__(self, smoothing=0.1, dim=-1):
      super(LabelSmoothingLoss, self).__init__()
      self.confidence = 1.0 - smoothing
      self.smoothing = smoothing
      self.dim = dim
  
file_path: nni/examples/nas/legacy/oneshot/proxylessnas/putils.py
imports: import torch
  import nni.retiarii.nn.pytorch
label_desc: Use image node_id 1 to create a new LabelSmoothingLoss object from inherited base classes: nn with example: obj = LabelSmoothingLoss(smoothing, dim)