parent
645855e8b1
commit
b7c3fc9182
@ -115,7 +115,7 @@ inline void CalcPredictShape(bool strict_shape, PredictionType type, size_t rows
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
CHECK_EQ(
|
CHECK_EQ(
|
||||||
std::accumulate(shape.cbegin(), shape.cend(), 1, std::multiplies<>{}),
|
std::accumulate(shape.cbegin(), shape.cend(), static_cast<bst_ulong>(1), std::multiplies<>{}),
|
||||||
chunksize * rows);
|
chunksize * rows);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -18,4 +18,6 @@ def test_large_input():
|
|||||||
X = cp.ones((m, n), dtype=np.float32)
|
X = cp.ones((m, n), dtype=np.float32)
|
||||||
y = cp.ones(m)
|
y = cp.ones(m)
|
||||||
dmat = xgb.DeviceQuantileDMatrix(X, y)
|
dmat = xgb.DeviceQuantileDMatrix(X, y)
|
||||||
xgb.train({"tree_method": "gpu_hist", "max_depth": 1}, dmat, 1)
|
booster = xgb.train({"tree_method": "gpu_hist", "max_depth": 1}, dmat, 1)
|
||||||
|
del y
|
||||||
|
booster.inplace_predict(X)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user