Skip to content

Commit

Permalink
PL full test (#4309)
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty1s authored Mar 21, 2022
1 parent dec8dc0 commit 66d1521
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/data/test_lightning_datamodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

from torch_geometric.data import LightningDataset, LightningNodeData
from torch_geometric.nn import global_mean_pool
from torch_geometric.testing import onlyFullTest

try:
from pytorch_lightning import LightningModule
Expand Down Expand Up @@ -53,6 +54,7 @@ def configure_optimizers(self):
return torch.optim.Adam(self.parameters(), lr=0.01)


@onlyFullTest
@pytest.mark.skipif(no_pytorch_lightning, reason='PL not available')
@pytest.mark.skipif(not torch.cuda.is_available(), reason='CUDA not available')
@pytest.mark.parametrize('strategy', [None, 'ddp_spawn'])
Expand Down Expand Up @@ -135,6 +137,7 @@ def configure_optimizers(self):
return torch.optim.Adam(self.parameters(), lr=0.01)


@onlyFullTest
@pytest.mark.skipif(no_pytorch_lightning, reason='PL not available')
@pytest.mark.skipif(not torch.cuda.is_available(), reason='CUDA not available')
@pytest.mark.parametrize('loader', ['full', 'neighbor'])
Expand Down Expand Up @@ -226,6 +229,7 @@ def configure_optimizers(self):
return torch.optim.Adam(self.parameters(), lr=0.01)


@onlyFullTest
@pytest.mark.skipif(no_pytorch_lightning, reason='PL not available')
@pytest.mark.skipif(not torch.cuda.is_available(), reason='CUDA not available')
def test_lightning_hetero_node_data(get_dataset):
Expand Down

0 comments on commit 66d1521

Please sign in to comment.