diff --git a/core/ps/optimizer/ada_grad_kernel.cc b/core/ps/optimizer/ada_grad_kernel.cc index a51ebec..537ab3a 100644 --- a/core/ps/optimizer/ada_grad_kernel.cc +++ b/core/ps/optimizer/ada_grad_kernel.cc @@ -152,7 +152,7 @@ void SparseAdaGradValue::ShowDecay(const AdaGrad* opt, int delta_days) { } bool SparseAdaGradValue::DeleteByShow(const AdaGrad* opt) { - return show_ < opt->show_threshold && no_show_days_ > opt->no_show_days; + return show_ < opt->show_threshold || no_show_days_ > opt->no_show_days; } } // namespace tensornet