class_docstr: Weighted cross-entropy loss for a sequence of logits.
docstr: Override the parent __call__ to have a customized reduce
  behavior.
code: def __call__(self, y_true, y_pred, sample_weight=None):
      """Override the parent __call__ to have a customized reduce
      behavior."""
      return sequence_loss(
          y_pred,
          y_true,
          sample_weight,
          average_across_timesteps=self.average_across_timesteps,
          average_across_batch=self.average_across_batch,
          sum_over_timesteps=self.sum_over_timesteps,
          sum_over_batch=self.sum_over_batch,
          softmax_loss_function=self.softmax_loss_function,
          name=self.name,
      )
  
file_path: addons/tensorflow_addons/seq2seq/loss.py
imports: import tensorflow
  from tensorflow_addons.utils.types import TensorLike
  from typeguard import typechecked
  from typing import Callable, Optional
label_desc: Use image node_id 2 for calling the SequenceLoss obj's underlying member method code with example usage: obj.__call__(y_true, y_pred, sample_weight) and returns: sequence_loss