fix bug
This commit is contained in:
parent
f64152bf97
commit
b0dacc5a80
@ -25,12 +25,12 @@ DECLARE_FIELD_ENUM_CLASS(xgboost::common::ProbabilityDistributionType);
|
|||||||
namespace xgboost {
|
namespace xgboost {
|
||||||
namespace common {
|
namespace common {
|
||||||
|
|
||||||
#ifndef __CUDACC__
|
#if !defined(__CUDACC__) && !defined(__HIP_PLATFORM_AMD__)
|
||||||
|
|
||||||
using std::log;
|
using std::log;
|
||||||
using std::fmax;
|
using std::fmax;
|
||||||
|
|
||||||
#endif // __CUDACC__
|
#endif // __CUDACC__ && __HIP_PLATFORM_AMD__
|
||||||
|
|
||||||
enum class CensoringType : uint8_t {
|
enum class CensoringType : uint8_t {
|
||||||
kUncensored, kRightCensored, kLeftCensored, kIntervalCensored
|
kUncensored, kRightCensored, kLeftCensored, kIntervalCensored
|
||||||
|
|||||||
@ -84,7 +84,7 @@ DMLC_REGISTRY_LINK_TAG(elementwise_metric);
|
|||||||
DMLC_REGISTRY_LINK_TAG(multiclass_metric);
|
DMLC_REGISTRY_LINK_TAG(multiclass_metric);
|
||||||
DMLC_REGISTRY_LINK_TAG(survival_metric);
|
DMLC_REGISTRY_LINK_TAG(survival_metric);
|
||||||
DMLC_REGISTRY_LINK_TAG(rank_metric);
|
DMLC_REGISTRY_LINK_TAG(rank_metric);
|
||||||
#ifdef XGBOOST_USE_CUDA
|
#if defined(XGBOOST_USE_CUDA) || defined(XGBOOST_USE_HIP)
|
||||||
DMLC_REGISTRY_LINK_TAG(auc_gpu);
|
DMLC_REGISTRY_LINK_TAG(auc_gpu);
|
||||||
DMLC_REGISTRY_LINK_TAG(rank_metric_gpu);
|
DMLC_REGISTRY_LINK_TAG(rank_metric_gpu);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user