code: def __init__(self, num_classes, epsilon):
      super(CrossEntropyLabelSmooth, self).__init__()
      self.num_classes = num_classes
      self.epsilon = epsilon
      self.logsoftmax = nn.LogSoftmax(dim=1)
  
file_path: nni/examples/nas/legacy/oneshot/spos/utils.py
imports: import torch
  import torch.nn
  import numpy
  import PIL
label_desc: Use image node_id 1 to create a new CrossEntropyLabelSmooth object from inherited base classes: nn with example: obj = CrossEntropyLabelSmooth(num_classes, epsilon)