Skip to content
Closed
Show file tree
Hide file tree
Changes from 4 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
2 changes: 1 addition & 1 deletion kernels/portable/cpu/op_isinf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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
2 changes: 1 addition & 1 deletion kernels/portable/cpu/op_isnan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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