We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 005dc86 commit aab27b3Copy full SHA for aab27b3
1 file changed
paddle2onnx/mapper/tensor/atan2.cc
@@ -57,7 +57,7 @@ void Atan2Mapper::Opset9() {
57
helper_->AutoCast(minus_node->output(0), dtype, P2ODataType::BOOL);
58
59
std::string pi_node =
60
- helper_->Constant(GetOnnxDtype(dtype), std::vector<float>{M_PI});
+ helper_->Constant(GetOnnxDtype(dtype), std::vector<float>{static_cast<float>(M_PI)});
61
62
auto sign_node = helper_->MakeNode("Sign", {input_x_name});
63
0 commit comments