Skip to content

Commit

Permalink
Update dataset.py corrected order of valid and train arguments in Dom…
Browse files Browse the repository at this point in the history
…ainDataModule (#83)

* Update dataset.py  swapped valid and train arguments in datadomain 

see last pull request

* fix also for GWDataModule

---------

Co-authored-by: bdvllrs <[email protected]>
  • Loading branch information
NicolasKuske and bdvllrs authored Sep 19, 2024
1 parent 48dc6ca commit 854ea4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/main_example/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def get_domain_data(
class DomainDataModule(LightningDataModule):
def __init__(
self,
val_dataset: torch.Tensor,
train_dataset: torch.Tensor,
val_dataset: torch.Tensor,
batch_size: int,
) -> None:
super().__init__()
Expand Down Expand Up @@ -109,8 +109,8 @@ def make_datasets(
class GWDataModule(LightningDataModule):
def __init__(
self,
val_datasets: dict[frozenset[str], DomainDataset],
train_datasets: dict[frozenset[str], DomainDataset],
val_datasets: dict[frozenset[str], DomainDataset],
batch_size: int,
) -> None:
super().__init__()
Expand Down

0 comments on commit 854ea4b

Please sign in to comment.