Use integer gradients in gpu_hist split evaluation (#8274)

This commit is contained in:
Rory Mitchell
2022-10-11 12:16:27 +02:00
committed by GitHub
parent c68684ff4c
commit 210915c985
12 changed files with 224 additions and 292 deletions

View File

@@ -264,8 +264,8 @@ using GradientPairPrecise = detail::GradientPairInternal<double>;
* we don't accidentally use it in gain calculations.*/
class GradientPairInt64 {
using T = int64_t;
T grad_;
T hess_;
T grad_ = 0;
T hess_ = 0;
public:
using ValueT = T;