@@ -72,16 +72,6 @@ load_to_compute_fn<CTYPE_COMPUTE> get_load_to_compute_fn_intb(const Tensor& t) {
7272 return result;
7373}
7474
75- template <typename CTYPE_COMPUTE, const char * op_name>
76- load_to_compute_fn<CTYPE_COMPUTE> get_load_to_compute_fn_bool (const Tensor& t) {
77- ET_CHECK_MSG (
78- t.scalar_type () == ScalarType::Bool,
79- " Unhandled dtype %s for %s" ,
80- ::executorch::runtime::toString (t.scalar_type()),
81- op_name);
82- return internal::load_and_convert<CTYPE_COMPUTE, bool >;
83- }
84-
8575template <typename CTYPE_COMPUTE, const char * op_name>
8676load_to_compute_fn<CTYPE_COMPUTE> get_load_to_compute_fn_bool_or_byte (
8777 const Tensor& t) {
@@ -175,17 +165,6 @@ store_compute_to_tensor_fn<CTYPE_COMPUTE> get_store_compute_to_tensor_fn_intb(
175165 return result;
176166}
177167
178- template <typename CTYPE_COMPUTE, const char * op_name>
179- store_compute_to_tensor_fn<CTYPE_COMPUTE> get_store_compute_to_tensor_fn_bool (
180- const Tensor& t) {
181- ET_CHECK_MSG (
182- t.scalar_type () == ScalarType::Bool,
183- " Unhandled dtype %s for %s" ,
184- ::executorch::runtime::toString (t.scalar_type()),
185- op_name);
186- return internal::convert_and_store<bool , CTYPE_COMPUTE>;
187- }
188-
189168template <typename CTYPE_COMPUTE, const char * op_name>
190169store_compute_to_tensor_fn<CTYPE_COMPUTE>
191170get_store_compute_to_tensor_fn_bool_or_byte (const Tensor& t) {
@@ -240,7 +219,6 @@ enum class SupportedTensorDtypes {
240219 REALHBF16,
241220 FLOATHBF16,
242221 INTB,
243- BOOL,
244222 BOOL_OR_BYTE,
245223 // DEPRECATED: not likely to be correct; use SAME_AS_COMMON.
246224 SAME_AS_COMPUTE,
@@ -262,8 +240,6 @@ load_to_compute_fn<CTYPE_COMPUTE> get_load_to_compute_fn_impl(
262240 return get_load_to_compute_fn_realhbf16<CTYPE_COMPUTE, op_name>(t);
263241 case SupportedTensorDtypes::INTB:
264242 return get_load_to_compute_fn_intb<CTYPE_COMPUTE, op_name>(t);
265- case SupportedTensorDtypes::BOOL:
266- return get_load_to_compute_fn_bool<CTYPE_COMPUTE, op_name>(t);
267243 case SupportedTensorDtypes::BOOL_OR_BYTE:
268244 return get_load_to_compute_fn_bool_or_byte<CTYPE_COMPUTE, op_name>(t);
269245 case SupportedTensorDtypes::SAME_AS_COMPUTE:
@@ -295,8 +271,6 @@ store_compute_to_tensor_fn<CTYPE_COMPUTE> get_store_compute_to_tensor_fn(
295271 t);
296272 case SupportedTensorDtypes::INTB:
297273 return get_store_compute_to_tensor_fn_intb<CTYPE_COMPUTE, op_name>(t);
298- case SupportedTensorDtypes::BOOL:
299- return get_store_compute_to_tensor_fn_bool<CTYPE_COMPUTE, op_name>(t);
300274 case SupportedTensorDtypes::BOOL_OR_BYTE:
301275 return get_store_compute_to_tensor_fn_bool_or_byte<
302276 CTYPE_COMPUTE,
@@ -344,14 +318,12 @@ bool check_tensor_dtype(
344318 const ScalarType compute_type);
345319
346320// / Return the one output type we are willing to emit specialized code
347- // / to handle, given a compute type of CTYPE_COMPUTE and supported
321+ // / to handle, given a compute type of CTYPE_COMMON and supported
348322// / output types of out_dtypes.
349323template <typename CTYPE_COMPUTE>
350324inline constexpr ScalarType specialized_output_scalar_type (
351325 SupportedTensorDtypes out_dtypes) {
352326 switch (out_dtypes) {
353- case SupportedTensorDtypes::BOOL:
354- return ScalarType::Bool;
355327 case SupportedTensorDtypes::BOOL_OR_BYTE:
356328 return ScalarType::Bool;
357329 case SupportedTensorDtypes::REALHBBF16:
0 commit comments