Skip to content

Commit

Permalink
fix cpu code
Browse files Browse the repository at this point in the history
  • Loading branch information
a162837 committed Nov 11, 2024
1 parent b53a055 commit e3e973f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/phi/kernels/cpu/clip_kernel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void ClipWithTensorKernel(const Context& ctx,
T* out_data = ctx.template Alloc<T>(out);

for (int i = 0; i < x_numel; i++) {
out_data[i] = x_data[i] < min_data[i] ? min_data[i] : x_data[i] > max_data[i] ? max_data[i] : x;
out_data[i] = x_data[i] < min_data[i] ? min_data[i] : x_data[i] > max_data[i] ? max_data[i] : x_data[i];
}
}

Expand Down

0 comments on commit e3e973f

Please sign in to comment.