diff --git a/src/cpu_forest_model.h b/src/cpu_forest_model.h index 3a40e81..f9e403e 100644 --- a/src/cpu_forest_model.h +++ b/src/cpu_forest_model.h @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include @@ -54,6 +55,8 @@ struct ForestModel { *tl_model_->base_tl_model(), filex::preferred_tree_layout, filex::index_type{}, std::nullopt, raft_proto::device_type::cpu); + rapids::log_info(__FILE__, __LINE__) + << "Loaded model to new FIL format"; } catch (filex::model_import_error const& ex) { result = std::nullopt; @@ -65,7 +68,7 @@ struct ForestModel { } return result; }()}, - class_encoder_{tl_model_->config().cpu_nthread} + class_encoder_{int(thread_count(tl_model_->config().cpu_nthread))} { } diff --git a/src/gpu_forest_model.h b/src/gpu_forest_model.h index 0ce478f..94d47dc 100644 --- a/src/gpu_forest_model.h +++ b/src/gpu_forest_model.h @@ -75,6 +75,8 @@ struct ForestModel { *tl_model_->base_tl_model(), filex::preferred_tree_layout, filex::index_type{}, std::nullopt, raft_proto::device_type::gpu); + rapids::log_info(__FILE__, __LINE__) + << "Loaded model to new FIL format"; } catch (filex::model_import_error const& ex) { result = std::nullopt;