Skip to content

Commit

Permalink
Add withPackage for torch_sparse in pprgo test
Browse files Browse the repository at this point in the history
  • Loading branch information
ryspark committed Dec 11, 2024
1 parent 7042d89 commit 80fd5bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/nn/models/test_pprgo.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from torch_geometric.datasets import KarateClub
from torch_geometric.nn.models.pprgo import PPRGo, pprgo_prune_features
from torch_geometric.testing import withPackage


@pytest.mark.parametrize('n_layers', [1, 4])
Expand Down Expand Up @@ -52,6 +53,7 @@ def test_pprgo_karate():
@pytest.mark.parametrize('n_power_iters', [1, 3])
@pytest.mark.parametrize('frac_predict', [1.0, 0.5])
@pytest.mark.parametrize('batch_size', [1, 9999])
@withPackage('torch_sparse')
def test_pprgo_inference(n_power_iters, frac_predict, batch_size):
data = KarateClub()[0]
num_nodes = data.num_nodes
Expand Down

0 comments on commit 80fd5bc

Please sign in to comment.