Skip to content

Commit 95151b4

Browse files
authored
Rename kleidi_ai in PackedWeightsType and update references (#2318)
Summary: Rename kleidi_ai in PackedWeightsType and update references
1 parent fdddb2c commit 95151b4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

torchao/experimental/ops/linear_8bit_act_xbit_weight/kernel_selector.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ void register_ukernel_config_kleidi(
255255
if (!cpuinfo_initialize()) {
256256
throw std::runtime_error("Failed to initialize cpuinfo!");
257257
}
258-
check_format(format, torchao::ops::PackedWeightsType::kleidi_ai, weight_nbit);
258+
check_format(format, torchao::ops::PackedWeightsType::linear_8bit_act_xbit_weight_kleidi_ai, weight_nbit);
259259
namespace op = torchao::kernels::cpu::aarch64::kleidi::
260260
kai_matmul_clamp_f32_qai8dxp_qsi4c32p;
261261

@@ -343,7 +343,7 @@ void register_ukernel_config(
343343
register_ukernel_config_universal<weight_nbit>(table, format, uarch);
344344
break;
345345
}
346-
case torchao::ops::PackedWeightsType::kleidi_ai: {
346+
case torchao::ops::PackedWeightsType::linear_8bit_act_xbit_weight_kleidi_ai: {
347347
#ifdef TORCHAO_ENABLE_KLEIDI
348348
register_ukernel_config_kleidi<weight_nbit>(table, format, uarch);
349349
#endif // TORCHAO_ENABLE_KLEIDI
@@ -411,7 +411,7 @@ PackedWeightsFormat select_packed_weights_format(
411411
if (weight_nbit == 4 && (!has_weight_zeros)) {
412412
#if defined(TORCHAO_ENABLE_ARM_I8MM)
413413
return PackedWeightsFormat(
414-
torchao::ops::PackedWeightsType::kleidi_ai,
414+
torchao::ops::PackedWeightsType::linear_8bit_act_xbit_weight_kleidi_ai,
415415
weight_nbit,
416416
has_weight_zeros,
417417
has_bias,
@@ -420,7 +420,7 @@ PackedWeightsFormat select_packed_weights_format(
420420
/*sr*/ 2);
421421
#elif defined(TORCHAO_ENABLE_ARM_NEON_DOT)
422422
return PackedWeightsFormat(
423-
torchao::ops::PackedWeightsType::kleidi_ai,
423+
torchao::ops::PackedWeightsType::linear_8bit_act_xbit_weight_kleidi_ai,
424424
weight_nbit,
425425
has_weight_zeros,
426426
has_bias,

torchao/experimental/ops/packed_weights_header.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ enum class PackedWeightsType : uint32_t {
1616
unknown = 0,
1717
linear_8bit_act_xbit_weight_universal = 1,
1818
embedding_xbit_universal = 2,
19-
kleidi_ai = 3,
19+
linear_8bit_act_xbit_weight_kleidi_ai = 3,
2020
linear_8bit_act_xbit_weight_lut = 4,
2121
};
2222

0 commit comments

Comments
 (0)