(self, batch, output, target, **kwargs)
return NotImplementedError
Compute the loss. Subclass must define this method.

        Args:

            batch: the current batch.
            output: the predict output from the model.
            target: the validate target to compare output with.
            **kwargs(optional): additional info for computing loss.
Compute the loss. Subclass must define this method.
Compute the loss . Subclass must define this method .
def _compute_loss(self, batch, output, target, **kwargs):
        """
        Compute the loss. Subclass must define this method.

        Args:

            batch: the current batch.
            output: the predict output from the model.
            target: the validate target to compare output with.
            **kwargs(optional): additional info for computing loss.
        """
        return NotImplementedError
def _compute_loss ( self , batch , output , target , * * kwargs ) : return NotImplementedError