@@ -72,16 +72,6 @@ load_to_compute_fn<CTYPE_COMPUTE> get_load_to_compute_fn_intb(const Tensor& t) {
72
72
return result;
73
73
}
74
74
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
-
85
75
template <typename CTYPE_COMPUTE, const char * op_name>
86
76
load_to_compute_fn<CTYPE_COMPUTE> get_load_to_compute_fn_bool_or_byte (
87
77
const Tensor& t) {
@@ -175,17 +165,6 @@ store_compute_to_tensor_fn<CTYPE_COMPUTE> get_store_compute_to_tensor_fn_intb(
175
165
return result;
176
166
}
177
167
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
-
189
168
template <typename CTYPE_COMPUTE, const char * op_name>
190
169
store_compute_to_tensor_fn<CTYPE_COMPUTE>
191
170
get_store_compute_to_tensor_fn_bool_or_byte (const Tensor& t) {
@@ -240,7 +219,6 @@ enum class SupportedTensorDtypes {
240
219
REALHBF16,
241
220
FLOATHBF16,
242
221
INTB,
243
- BOOL,
244
222
BOOL_OR_BYTE,
245
223
// DEPRECATED: not likely to be correct; use SAME_AS_COMMON.
246
224
SAME_AS_COMPUTE,
@@ -262,8 +240,6 @@ load_to_compute_fn<CTYPE_COMPUTE> get_load_to_compute_fn_impl(
262
240
return get_load_to_compute_fn_realhbf16<CTYPE_COMPUTE, op_name>(t);
263
241
case SupportedTensorDtypes::INTB:
264
242
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);
267
243
case SupportedTensorDtypes::BOOL_OR_BYTE:
268
244
return get_load_to_compute_fn_bool_or_byte<CTYPE_COMPUTE, op_name>(t);
269
245
case SupportedTensorDtypes::SAME_AS_COMPUTE:
@@ -295,8 +271,6 @@ store_compute_to_tensor_fn<CTYPE_COMPUTE> get_store_compute_to_tensor_fn(
295
271
t);
296
272
case SupportedTensorDtypes::INTB:
297
273
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);
300
274
case SupportedTensorDtypes::BOOL_OR_BYTE:
301
275
return get_store_compute_to_tensor_fn_bool_or_byte<
302
276
CTYPE_COMPUTE,
@@ -344,14 +318,12 @@ bool check_tensor_dtype(
344
318
const ScalarType compute_type);
345
319
346
320
// / 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
348
322
// / output types of out_dtypes.
349
323
template <typename CTYPE_COMPUTE>
350
324
inline constexpr ScalarType specialized_output_scalar_type (
351
325
SupportedTensorDtypes out_dtypes) {
352
326
switch (out_dtypes) {
353
- case SupportedTensorDtypes::BOOL:
354
- return ScalarType::Bool;
355
327
case SupportedTensorDtypes::BOOL_OR_BYTE:
356
328
return ScalarType::Bool;
357
329
case SupportedTensorDtypes::REALHBBF16:
0 commit comments