Skip to content

Commit

Permalink
HD.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Dec 22, 2021
1 parent b12c4e1 commit c3656ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/categorical.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ inline XGBOOST_DEVICE bool IsCat(Span<FeatureType const> ft, bst_feature_t fidx)
}

template <typename SizeT>
bool InvalidCat(float cat, SizeT n) {
XGBOOST_DEVICE bool InvalidCat(float cat, SizeT n) {
return cat < 0 || cat > static_cast<float>(std::numeric_limits<bst_cat_t>::max()) || cat >= n;
}

Expand Down

0 comments on commit c3656ca

Please sign in to comment.