Skip to content

[BE] Fix compilation on older Linux flavors #3262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion kernels/portable/cpu/op_isinf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ namespace executor {
namespace native {

Tensor& isinf_out(RuntimeContext& ctx, const Tensor& in, Tensor& out) {
return internal::unary_ufunc_realhb_to_bool(std::isinf, ctx, in, out);
return internal::unary_ufunc_realhb_to_bool(
static_cast<bool (*)(double)>(std::isinf), ctx, in, out);
}

} // namespace native
Expand Down
3 changes: 2 additions & 1 deletion kernels/portable/cpu/op_isnan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ namespace executor {
namespace native {

Tensor& isnan_out(RuntimeContext& ctx, const Tensor& in, Tensor& out) {
return internal::unary_ufunc_realhb_to_bool(std::isnan, ctx, in, out);
return internal::unary_ufunc_realhb_to_bool(
static_cast<bool (*)(double)>(std::isnan), ctx, in, out);
}

} // namespace native
Expand Down