Skip to content

Commit 963ffcc

Browse files
bugfix:p_norm test=develop
1 parent ae39590 commit 963ffcc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

paddle/phi/kernels/gpu/p_norm_grad_kernel.cu

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,10 @@ struct PNormGradFunctor {
5252
int size) {
5353
auto unstable_term =
5454
(*x).abs().template cast<MT>().pow(this->porder).template cast<T>();
55-
5655
auto mask = (*x) == x->constant(static_cast<T>(0));
5756
auto stable_term =
5857
mask.select(x->constant(static_cast<T>(0)), unstable_term);
5958
auto self_scaled = (*x).sign() * stable_term;
60-
6159
auto norm_term =
6260
(*y).template cast<MT>().pow(-this->porder).template cast<T>();
6361
dx->device(place) =

0 commit comments

Comments
 (0)