Skip to content

Commit

Permalink
show_threshold和no_show_days的特征筛减逻辑改为或
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxingda committed Dec 17, 2021
1 parent 2477156 commit d9890f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/ps/optimizer/ada_grad_kernel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9890f9

Please sign in to comment.