"tests/vscode:/vscode.git/clone" did not exist on "2370961ae01a7332f6356bda311897b35e67e362"
Commit c78f26ed authored by Ilya Matiach's avatar Ilya Matiach Committed by Guolin Ke
Browse files

fix error when using distributed quantile regression (#1593)

parent c7b86f1d
......@@ -234,7 +234,7 @@ public:
template<class T>
static void GlobalSum(std::vector<T>& local) {
std::vector<T> global;
std::vector<T> global(local.size(), 0);
Allreduce(reinterpret_cast<char*>(local.data()),
static_cast<comm_size_t>(sizeof(T) * local.size()), sizeof(T),
reinterpret_cast<char*>(global.data()),
......
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