def _compute_loss(self, model_output):
        try:
            return T.mean(self.losses)
        except NotImplementedError:
            raise NotImplementedError("Subclass of 'Loss' must either implement '_compute_loss(model_output)' or '_compute_losses(model_output)'.")
Computes the loss for the whole batch.
dataset/ETHPy150Open SMART-Lab/smartlearner/smartlearner/interfaces/loss.py/Loss._compute_loss