#include <generic_parameters.h>
◆ GenericParameter()
| xgboost::GenericParameter::GenericParameter |
( |
| ) |
|
◆ ConfigureGpuId()
| void xgboost::GenericParameter::ConfigureGpuId |
( |
bool |
require_gpu | ) |
|
Configure the parameter ‘gpu_id’.
- Parameters
-
| require_gpu | Whether GPU is explicitly required from user. |
◆ DMLC_DECLARE_PARAMETER()
◆ IsCPU()
| bool xgboost::GenericParameter::IsCPU |
( |
| ) |
const |
|
inline |
◆ Threads()
| int32_t xgboost::GenericParameter::Threads |
( |
| ) |
const |
Return automatically chosen threads.
◆ fail_on_invalid_gpu_id
| bool xgboost::GenericParameter::fail_on_invalid_gpu_id {false} |
◆ gpu_id
| int xgboost::GenericParameter::gpu_id {kCpuId} |
◆ kCpuId
| constexpr int32_t xgboost::GenericParameter::kCpuId = -1 |
|
staticconstexpr |
◆ kDefaultSeed
| constexpr int64_t xgboost::GenericParameter::kDefaultSeed = 0 |
|
staticconstexpr |
◆ nthread
| int xgboost::GenericParameter::nthread {0} |
◆ seed
◆ seed_per_iteration
| bool xgboost::GenericParameter::seed_per_iteration {false} |
◆ validate_parameters
| bool xgboost::GenericParameter::validate_parameters {false} |
The documentation for this struct was generated from the following file: