Skip to content

Commit

Permalink
Update atan2.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangjiajun authored Sep 14, 2023
1 parent 005dc86 commit aab27b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle2onnx/mapper/tensor/atan2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void Atan2Mapper::Opset9() {
helper_->AutoCast(minus_node->output(0), dtype, P2ODataType::BOOL);

std::string pi_node =
helper_->Constant(GetOnnxDtype(dtype), std::vector<float>{M_PI});
helper_->Constant(GetOnnxDtype(dtype), std::vector<float>{static_cast<float>(M_PI)});

auto sign_node = helper_->MakeNode("Sign", {input_x_name});

Expand Down

0 comments on commit aab27b3

Please sign in to comment.