def update(self, y_pred: torch.Tensor, y_true: torch.Tensor) -> None:
        """
        Update accumulated data with new batch
        """
        self.num_examples += len(y_true)
        self.delta_sum += torch.sum(torch.pow(y_pred - y_true, 2))
        self.y_sum += torch.sum(y_true)
        self.y_sq_sum += torch.sum(torch.pow(y_true, 2))

        Update accumulated data with new batch
        
catalyst/metrics/_r2_squared.py