Skip to content

Commit 035defb

Browse files
committed
Avoid CUDA sync for metadata benchmarks
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: baf5f11a-f67c-44dc-804e-6be849fa9160
1 parent 2c7c697 commit 035defb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

benchmarks/batching.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def _benchmark_device(device: torch.device) -> dict[str, float]:
7878
"metadata-only": _measure(
7979
lambda: tio.SubjectsBatch.from_subjects(metadata_subjects),
8080
_ITERATIONS,
81-
device,
81+
torch.device("cpu"),
8282
),
8383
}
8484

0 commit comments

Comments
 (0)