Skip to content

Commit

Permalink
Check.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jan 13, 2022
1 parent 417f88d commit cce83a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/quantile.cu
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ struct InvalidCatOp {

XGBOOST_DEVICE bool operator()(size_t i) {
auto fidx = dh::SegmentId(ptrs, i);
return InvalidCat(values[i], ptrs[fidx + 1] - ptrs[fidx]);
return IsCat(ft, fidx) && InvalidCat(values[i], ptrs[fidx + 1] - ptrs[fidx]);
}
};
} // anonymous namespace
Expand Down

0 comments on commit cce83a3

Please sign in to comment.