Unverified Commit 186c7cd4 authored by Murphy Liang's avatar Murphy Liang Committed by GitHub
Browse files

[c++] fix parallel_tree_learner_split_info (#6738)


Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
Co-authored-by: default avatarshiyu1994 <shiyu_k1994@qq.com>
parent ae76aad6
...@@ -53,7 +53,7 @@ struct SplitInfo { ...@@ -53,7 +53,7 @@ struct SplitInfo {
bool default_left = true; bool default_left = true;
int8_t monotone_type = 0; int8_t monotone_type = 0;
inline static int Size(int max_cat_threshold) { inline static int Size(int max_cat_threshold) {
return 2 * sizeof(int) + sizeof(uint32_t) + sizeof(bool) + sizeof(double) * 7 + sizeof(data_size_t) * 2 + max_cat_threshold * sizeof(uint32_t) + sizeof(int8_t); return 2 * sizeof(int) + sizeof(uint32_t) + sizeof(bool) + sizeof(double) * 7 + sizeof(data_size_t) * 2 + max_cat_threshold * sizeof(uint32_t) + sizeof(int8_t) + sizeof(int64_t)*2;
} }
inline void CopyTo(char* buffer) const { inline void CopyTo(char* buffer) const {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment