Skip to content

Commit

Permalink
Merge branch 'nanmedian' of https://github.com/thunder95/Paddle into …
Browse files Browse the repository at this point in the history
…nanmedian
  • Loading branch information
thunder95 committed May 20, 2022
2 parents b0c9471 + 718fcdb commit 5f14183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/phi/kernels/cpu/nanmedian_kernel.cc
Expand Up @@ -52,7 +52,7 @@ void CalcMedianFunc(const Context& dev_ctx,
bool is_ori_odd = stride & 1;
if (should_ignore_nan) {
for (i = 0; i < pre_dim; i++) {
offset = i * pre_dim;
offset = i * sort_k;
if (nan_counts[i] == stride) {
m_ptr[i * 2] = -1;
m_ptr[i * 2 + 1] = -1;
Expand Down

0 comments on commit 5f14183

Please sign in to comment.