Fix cpplint. (#4157)
* Add comment after #endif. * Add missing headers.
This commit is contained in:
@@ -15,4 +15,4 @@ DMLC_REGISTRY_FILE_TAG(hinge_obj);
|
||||
|
||||
#ifndef XGBOOST_USE_CUDA
|
||||
#include "hinge.cu"
|
||||
#endif
|
||||
#endif // XGBOOST_USE_CUDA
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace obj {
|
||||
|
||||
#if defined(XGBOOST_USE_CUDA)
|
||||
DMLC_REGISTRY_FILE_TAG(hinge_obj_gpu);
|
||||
#endif
|
||||
#endif // defined(XGBOOST_USE_CUDA)
|
||||
|
||||
struct HingeObjParam : public dmlc::Parameter<HingeObjParam> {
|
||||
int n_gpus;
|
||||
|
||||
@@ -15,4 +15,4 @@ DMLC_REGISTRY_FILE_TAG(multiclass_obj);
|
||||
|
||||
#ifndef XGBOOST_USE_CUDA
|
||||
#include "multiclass_obj.cu"
|
||||
#endif
|
||||
#endif // XGBOOST_USE_CUDA
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace obj {
|
||||
|
||||
#if defined(XGBOOST_USE_CUDA)
|
||||
DMLC_REGISTRY_FILE_TAG(multiclass_obj_gpu);
|
||||
#endif
|
||||
#endif // defined(XGBOOST_USE_CUDA)
|
||||
|
||||
struct SoftmaxMultiClassParam : public dmlc::Parameter<SoftmaxMultiClassParam> {
|
||||
int num_class;
|
||||
|
||||
@@ -38,7 +38,7 @@ DMLC_REGISTRY_LINK_TAG(multiclass_obj_gpu);
|
||||
DMLC_REGISTRY_LINK_TAG(regression_obj);
|
||||
DMLC_REGISTRY_LINK_TAG(hinge_obj);
|
||||
DMLC_REGISTRY_LINK_TAG(multiclass_obj);
|
||||
#endif
|
||||
#endif // XGBOOST_USE_CUDA
|
||||
DMLC_REGISTRY_LINK_TAG(rank_obj);
|
||||
} // namespace obj
|
||||
} // namespace xgboost
|
||||
|
||||
@@ -15,4 +15,4 @@ DMLC_REGISTRY_FILE_TAG(regression_obj);
|
||||
|
||||
#ifndef XGBOOST_USE_CUDA
|
||||
#include "regression_obj.cu"
|
||||
#endif
|
||||
#endif // XGBOOST_USE_CUDA
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace obj {
|
||||
|
||||
#if defined(XGBOOST_USE_CUDA)
|
||||
DMLC_REGISTRY_FILE_TAG(regression_obj_gpu);
|
||||
#endif
|
||||
#endif // defined(XGBOOST_USE_CUDA)
|
||||
|
||||
struct RegLossParam : public dmlc::Parameter<RegLossParam> {
|
||||
float scale_pos_weight;
|
||||
|
||||
Reference in New Issue
Block a user