Skip to content

Commit

Permalink
Update composite_double_backward_api.h
Browse files Browse the repository at this point in the history
  • Loading branch information
HydrogenSulfate authored Mar 1, 2024
1 parent 62d9e51 commit 4df1777
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,6 @@ void silu_double_grad(const Tensor& x,
set_output<T>(ddx_mul_sigmoid * tmp, grad_out_grad);
}
if (grad_x) {
auto sigmoid_g = sigmoid * (1 - sigmoid);
set_output<T>(ddx_mul_sigmoid * out_grad * (1 - sigmoid) * (tmp - out + 1),
grad_x);
}
Expand Down

0 comments on commit 4df1777

Please sign in to comment.