"tests/pipelines/ddpm/__init__.py" did not exist on "d8287fcd1d94f33df55b54e2e1c140c2ab15b444"
Unverified Commit ad1afd58 authored by Artur Wojcik's avatar Artur Wojcik Committed by GitHub
Browse files

fix call to std::isinf() on Windows (#2425)

parent 35e5298e
...@@ -35,7 +35,7 @@ struct isinf : unary<isinf> ...@@ -35,7 +35,7 @@ struct isinf : unary<isinf>
{ {
auto apply() const auto apply() const
{ {
return [&](auto x) { return std::isinf(x); }; return [&](auto x) { return std::isinf(static_cast<double>(x)); };
} }
std::string name() const { return "isinf"; } std::string name() const { return "isinf"; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment