Skip to content

Commit

Permalink
HD.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jan 13, 2022
1 parent cce83a3 commit 3fa73aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/categorical.h
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 3fa73aa

Please sign in to comment.