Skip to content

Commit

Permalink
#6536: Fix asin backward op
Browse files Browse the repository at this point in the history
  • Loading branch information
umadevimcw committed Mar 19, 2024
1 parent 568b4e3 commit 2c776db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tt_eager/tt_dnn/op_library/backward/backward_ops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ std::vector<Tensor> atanh_bw(const Tensor& grad, const Tensor& input, const Memo
// result: grad * (-self * self + 1).rsqrt()
std::vector<Tensor> _asin_bw(const Tensor& grad, const Tensor& input, const MemoryConfig& output_mem_config) {
std::vector<Tensor> grad_tensor;
Tensor grad_result = mul(grad, rsqrt(add1(neg(square(grad, output_mem_config), output_mem_config), output_mem_config), true, output_mem_config), std::nullopt, output_mem_config);
Tensor grad_result = mul(grad, rsqrt(add1(neg(square(input, output_mem_config), output_mem_config), output_mem_config), true, output_mem_config), std::nullopt, output_mem_config);
grad_tensor.emplace_back(grad_result);
return grad_tensor;
}
Expand Down

0 comments on commit 2c776db

Please sign in to comment.