Skip to content

Commit

Permalink
Call .stop() on dataloader in test_dataloader_schema (#1848)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverholworthy committed Jul 3, 2023
1 parent a775cff commit f9a2891
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/loader/test_tf_dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,3 +509,5 @@ def test_dataloader_schema(tmpdir, df, dataset, batch_size, engine, device):

num_label_cols = batch[1].shape[1] if len(batch[1].shape) > 1 else 1
assert num_label_cols == len(label_name)

data_loader.stop()
2 changes: 2 additions & 0 deletions tests/unit/loader/test_torch_dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,3 +526,5 @@ def test_dataloader_schema(tmpdir, df, dataset, batch_size, engine, device):

num_label_cols = batch[1].shape[1] if len(batch[1].shape) > 1 else 1
assert num_label_cols == len(label_name)

data_loader.stop()

0 comments on commit f9a2891

Please sign in to comment.