def METHOD_NAME(self, x, y, reduction='none'):
    with torch.no_grad():
        default_reduction = self.loss_fn.reduction
        self.loss_fn.reduction = reduction
        yt = self.to_tensor(y)
        xt = self.to_tensor(x)
        loss = self.loss_fn(self.model(xt), yt)
        self.loss_fn.reduction = default_reduction
    return list(map(float, loss.detach().numpy()))