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

Function DeviceCheck

tests/cpp/data/test_cat_container.h:19–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19inline void DeviceCheck(CatContainer const& cats) {
20 ASSERT_TRUE(cats.HasCategorical());
21 ASSERT_FALSE(cats.Empty());
22 ASSERT_TRUE(cats.HostCanRead());
23 ASSERT_FALSE(cats.DeviceCanRead());
24}
25
26[[nodiscard]] inline CatContainer FromDf(Context const*, enc::HostColumnsView df) {
27 return CatContainer{df, false};

Callers 2

TestCatContainerStrFunction · 0.85
TestCatContainerMixedFunction · 0.85

Calls 4

HasCategoricalMethod · 0.45
EmptyMethod · 0.45
HostCanReadMethod · 0.45
DeviceCanReadMethod · 0.45

Tested by

no test coverage detected