Skip to content

Commit 510f775

Browse files
update
1 parent 8e45c42 commit 510f775

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/primitive/rule/vjp/details.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ void log_grad(const Tensor& x, const Tensor& out_grad, Tensor* x_grad) {
798798
template <typename T>
799799
void square_grad(const Tensor& x, const Tensor& out_grad, Tensor* x_grad) {
800800
if (x_grad) {
801-
auto x_grad_tmp = 2 * x * out_grad;
801+
Tensor x_grad_tmp = 2 * x * out_grad;
802802
set_output<T>(x_grad_tmp, x_grad);
803803
}
804804
}

0 commit comments

Comments
 (0)