Skip to content

Commit

Permalink
arg type
Browse files Browse the repository at this point in the history
  • Loading branch information
yichiac committed Feb 18, 2024
1 parent 2e0c93e commit 25c8d64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion torchgeo/datamodules/cdlsentinel2.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ def setup(self, stage: str) -> None:
generator = torch.Generator().manual_seed(0)

(self.train_dataset, self.val_dataset, self.test_dataset) = (
random_grid_cell_assignment(self.dataset, [0.8, 0.1, 0.1], generator)
random_grid_cell_assignment(
self.dataset, [0.8, 0.1, 0.1], generator=generator
)
)

if stage in ["fit"]:
Expand Down

0 comments on commit 25c8d64

Please sign in to comment.