class_docstr: Loss
class_docstr_tok: ["Loss"]
code: def __init__(self, class_dim=1000, epsilon=None):
      assert class_dim > 1, "class_dim=%d is not larger than 1" % (
          class_dim
      )
      self._class_dim = class_dim
      if epsilon is not None and epsilon >= 0.0 and epsilon <= 1.0:
          self._epsilon = epsilon
          self._label_smoothing = True
      else:
          self._epsilon = None
          self._label_smoothing = False
  
imports: import paddle
  import paddle.nn.functional
label_desc: Use image node_id 1 to create a new Loss object from inherited base classes: object with example: obj = Loss(class_dim, epsilon)