Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tchaton committed Apr 19, 2021
1 parent a06829a commit 86eaaaf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/data/test_data_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ def val_per_batch_transform_on_device(self, batch: Any) -> Any:
batch = batch[0]
assert torch.equal(batch["a"], tensor([0, 1]))
assert torch.equal(batch["b"], tensor([1, 2]))
return False
return [False]

@staticmethod
def fn_test_load_data() -> List[torch.Tensor]:
Expand Down Expand Up @@ -649,6 +649,8 @@ def training_step(self, batch, batch_idx):
assert batch is None

def validation_step(self, batch, batch_idx):
if isinstance(batch, list):
batch = batch[0]
assert batch is False

def test_step(self, batch, batch_idx):
Expand Down

0 comments on commit 86eaaaf

Please sign in to comment.