Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
justusschock committed Dec 29, 2022
1 parent 8c25169 commit b9cd7e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/loading/test_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ def test_data_moved_to_gpu(self):
data = [{"data": 1, "label": 1}, {"data": 2, "label": 2}, {"data": 3, "label": 3}]
loader = DataLoader(
data,
gpu_transforms=Compose([
DeviceChecker(keys=("data",), device="cuda"), DeviceChecker(keys=("label",), device="cpu")]
),
gpu_transforms=Compose(
[DeviceChecker(keys=("data",), device="cuda"), DeviceChecker(keys=("label",), device="cpu")]
),
to_gpu_trafo=ToDevice(device="cuda", keys=("data",)),
)
for x in loader:
Expand Down

0 comments on commit b9cd7e8

Please sign in to comment.