Skip to content

Commit aab27b3

Browse files
authored
Update atan2.cc
1 parent 005dc86 commit aab27b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

paddle2onnx/mapper/tensor/atan2.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void Atan2Mapper::Opset9() {
5757
helper_->AutoCast(minus_node->output(0), dtype, P2ODataType::BOOL);
5858

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

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

0 commit comments

Comments
 (0)