Skip to content

Commit f8c1014

Browse files
authored
Deprecate non-internal elementwise_util APIs (#9621)
As the code comment says, these APIs are undergoing development (see e.g. #9613) and it's pretty inconvenient that they're incidentally committed-to externally. Mark them deprecated so we have the option to drop that commitment in (IIUC) 0.7.
1 parent 118f0a4 commit f8c1014

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

kernels/portable/cpu/util/elementwise_util.h

+8-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ inline void apply_elementwise_fn(
119119
}
120120
});
121121
}
122-
} // namespace internal
123122

124123
template <typename CTYPE_COMPUTE, const char* op_name, typename Op>
125124
inline void apply_unitensor_elementwise_fn(
@@ -206,6 +205,14 @@ inline ScalarType get_compute_type(ScalarType& common_type) {
206205
}
207206
return compute_type;
208207
}
208+
} // namespace internal
209+
210+
// DEPRECATED: these APIs should not have been stabilized for external
211+
// use as they are undergoing active development.
212+
using internal::apply_bitensor_elementwise_fn;
213+
using internal::apply_tritensor_elementwise_fn;
214+
using internal::apply_unitensor_elementwise_fn;
215+
using internal::get_compute_type;
209216

210217
} // namespace utils
211218
} // namespace native

0 commit comments

Comments
 (0)