Commit ab94e75a authored by TousakaRin's avatar TousakaRin

Fix the default value of min_reduce_ratio of grandient_cl

parent 0cd02846
...@@ -249,7 +249,7 @@ void GradientConcurrencyLimiter::UpdateConcurrency() { ...@@ -249,7 +249,7 @@ void GradientConcurrencyLimiter::UpdateConcurrency() {
<< "GFLAG `gradient_cl_min_reduce_ratio' should " << "GFLAG `gradient_cl_min_reduce_ratio' should "
<< "be 0-1, current:" << FLAGS_gradient_cl_min_reduce_ratio << "be 0-1, current:" << FLAGS_gradient_cl_min_reduce_ratio
<< " , will compute with the default value(0.5)"; << " , will compute with the default value(0.5)";
min_reduce_ratio = 50; min_reduce_ratio = 0.5;
} }
next_concurrency = std::max( next_concurrency = std::max(
next_concurrency, int32_t(max_concurrency * min_reduce_ratio)); next_concurrency, int32_t(max_concurrency * min_reduce_ratio));
......
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