@geomstats.tests.np_and_autograd_only
def test_tangent_pca_error(self):
    X = self.X
    tpca = TangentPCA(self.metric, n_components=self.n_components)
    tpca.fit(X)
    X_diff_size = gs.ones((self.n_samples, (gs.shape(X)[1] + 1)))
    self.assertRaises(ValueError, tpca.transform, X_diff_size)
@geomstats.tests.np_and_autograd_only
def test_tangent_pca_error(self):
    X = self.X
    tpca = TangentPCA(self.metric, n_components=self.n_components)
    tpca.fit(X)
    X_diff_size = gs.ones((self.n_samples, (gs.shape(X)[1] + 1)))
    self.assertRaises(ValueError, tpca.transform, X_diff_size)