Skip to content

Commit d406504

Browse files
authored
Update op_isinf.cpp
1 parent 09d5729 commit d406504

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

kernels/portable/cpu/op_isinf.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,8 @@ namespace torch {
1414
namespace executor {
1515
namespace native {
1616

17-
namespace {
18-
bool isinf(double x) {
19-
return ::std::isinf(x);
20-
}
21-
}
2217
Tensor& isinf_out(RuntimeContext& ctx, const Tensor& in, Tensor& out) {
23-
return internal::unary_ufunc_realhb_to_bool(isinf, ctx, in, out);
18+
return internal::unary_ufunc_realhb_to_bool([](double x) {return std::isinf(x); }, ctx, in, out);
2419
}
2520

2621
} // namespace native

0 commit comments

Comments
 (0)