MCPcopy Create free account
hub / github.com/dmlc/xgboost / test_gpu_data_iterator

Function test_gpu_data_iterator

tests/python-gpu/test_gpu_data_iterator.py:40–57  ·  view source on GitHub ↗
(
    n_samples_per_batch: int,
    n_features: int,
    n_batches: int,
    subsample: bool,
    use_cupy: bool,
    on_host: bool,
)

Source from the content-addressed store, hash-verified

38)
39@settings(deadline=None, max_examples=16, print_blob=True)
40def test_gpu_data_iterator(
41 n_samples_per_batch: int,
42 n_features: int,
43 n_batches: int,
44 subsample: bool,
45 use_cupy: bool,
46 on_host: bool,
47) -> None:
48 run_data_iterator(
49 n_samples_per_batch,
50 n_features,
51 n_batches,
52 "hist",
53 subsample=subsample,
54 device="cuda",
55 use_cupy=use_cupy,
56 on_host=on_host,
57 )
58
59
60def test_cpu_data_iterator() -> None:

Callers

nothing calls this directly

Calls 1

run_data_iteratorFunction · 0.90

Tested by

no test coverage detected