Skip to content

Commit bd8de1b

Browse files
authored
Apply suggestions from code review
1 parent dc193a0 commit bd8de1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kernels/portable/cpu/op_isinf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace executor {
1515
namespace native {
1616

1717
Tensor& isinf_out(RuntimeContext& ctx, const Tensor& in, Tensor& out) {
18-
return internal::unary_ufunc_realhb_to_bool([](double x) {return std::isinf(x); }, ctx, in, out);
18+
return internal::unary_ufunc_realhb_to_bool(static_cast<bool(*)(double)>(std::isinf), ctx, in, out);
1919
}
2020

2121
} // namespace native

kernels/portable/cpu/op_isnan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace executor {
1515
namespace native {
1616

1717
Tensor& isnan_out(RuntimeContext& ctx, const Tensor& in, Tensor& out) {
18-
return internal::unary_ufunc_realhb_to_bool([](double x) { return ::std::isnan(x); }, ctx, in, out);
18+
return internal::unary_ufunc_realhb_to_bool(static_cast<bool(*)(double)>(std::isnan), ctx, in, out);
1919
}
2020

2121
} // namespace native

0 commit comments

Comments
 (0)