Skip to content

Commit fdd5fc8

Browse files
authored
fix unused variables (PaddlePaddle#76744)
1 parent f729aff commit fdd5fc8

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

paddle/phi/infermeta/binary.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1882,7 +1882,6 @@ void FastRMSNormInfermeta(const MetaTensor& x,
18821882
"0.0 and 0.001, But received [%s].",
18831883
epsilon));
18841884

1885-
phi::DataType x_dtype = x.dtype();
18861885
phi::DataType scale_dtype = scale.dtype();
18871886
y->set_dims(x_dim);
18881887
y->set_dtype(scale_dtype);

paddle/phi/infermeta/ternary.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,6 @@ void FastLayerNormInfermeta(const MetaTensor& x,
666666
"0.0 and 0.001, But received [%s].",
667667
epsilon));
668668

669-
phi::DataType x_dtype = x.dtype();
670669
phi::DataType scale_dtype = scale.dtype();
671670
y->set_dims(x_dim);
672671
y->set_dtype(scale_dtype);

0 commit comments

Comments
 (0)