class_docstr: NLL loss with label smoothing.
      
class_docstr_tok: ["NLL","loss","with","label","smoothing","."]
code: def __init__(self, smoothing=0.1):
      super(LabelSmoothingCrossEntropy, self).__init__()
      assert smoothing < 1.0
      self.smoothing = smoothing
      self.confidence = 1.0 - smoothing
  
file_path: pytorch-image-models/timm/loss/cross_entropy.py
imports: import torch
  import torch.nn
  import torch.nn.functional
label_desc: Use image node_id 1 to create a new LabelSmoothingCrossEntropy object from inherited base classes: nn with example: obj = LabelSmoothingCrossEntropy(smoothing)