docstr: Perform forward pass of the Cross Entropy Loss.
  
  true
      input array containing true labels.
  pred
      input array containing Predicted labels.
  axis
      the axis along which to compute the cross-entropy loss. If axis is ``-1``,
      the cross-entropy loss will be computed along the last dimension.
      Default: ``-1``.
  epsilon
      small value to avoid division by zero. Default: ``1e-7``.
  reduction
      ``'none'``: No reduction will be applied to the output.
      ``'mean'``: The output will be averaged.
      ``'sum'``: The output will be summed. Default: ``'sum'``.
  
  Returns
  -------
  ret
      The cross-entropy loss between the given distributions.
docstr_tok: ["Perform","forward","pass","of","the","Cross","Entropy","Loss",".","true","input","array","containing","true","labels",".","pred","input","array","containing","Predicted","labels",".","axis","the","axis","along","which","to","compute","the","cross-entropy","loss",".","If","axis","is","``","-1","``",",","the","cross-entropy","loss","will","be","computed","along","the","last","dimension",".","Default",":","``","-1","``",".","epsilon","small","value","to","avoid","division","by","zero",".","Default",":","``","1e-7","``",".","reduction","``","'none","'","``",":","No","reduction","will","be","applied","to","the","output",".","``","'mean","'","``",":","The","output","will","be","averaged",".","``","'sum","'","``",":","The","output","will","be","summed",".","Default",":","``","'sum","'","``",".","Returns","--","--","--","-","ret","The","cross-entropy","loss","between","the","given","distributions","."]
code: def _forward(
      self, true, pred, *, axis=None, epsilon=None, reduction=None
  ):
      """Perform forward pass of the Cross Entropy Loss.
  
      true
          input array containing true labels.
      pred
          input array containing Predicted labels.
      axis
          the axis along which to compute the cross-entropy loss. If axis is ``-1``,
          the cross-entropy loss will be computed along the last dimension.
          Default: ``-1``.
      epsilon
          small value to avoid division by zero. Default: ``1e-7``.
      reduction
          ``'none'``: No reduction will be applied to the output.
          ``'mean'``: The output will be averaged.
          ``'sum'``: The output will be summed. Default: ``'sum'``.
  
      Returns
      -------
      ret
          The cross-entropy loss between the given distributions.
      """
      return ivy.cross_entropy(
          true,
          pred,
          axis=ivy.default(axis, self._axis),
          epsilon=ivy.default(epsilon, self._epsilon),
          reduction=ivy.default(reduction, self._reduction),
      )
  
file_path: ivy/ivy/stateful/losses.py
imports: import ivy
  from ivy.stateful.module import Module
label_desc: Use image node_id 2 for calling the CrossEntropyLoss obj's underlying member method code with example usage: obj._forward(true, pred) and returns: ivy