Skip to content

Commit

Permalink
Fix issue with incorrect stride.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 662423833
  • Loading branch information
gonnet authored and xnnpack-bot committed Aug 13, 2024
1 parent 15a7a11 commit ddeb3f7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/packing.c
Original file line number Diff line number Diff line change
Expand Up @@ -1623,11 +1623,10 @@ void xnn_pack_qu8_weights_and_biases(
size_t xnn_packed_stride_kai_qs4_weights_and_biases(
const struct xnn_gemm_config* gemm_config, size_t k, size_t unused_k_stride,
size_t extra_bytes) {
const uint32_t nr = gemm_config->nr;
const uint32_t kr = UINT32_C(1) << gemm_config->log2_kr;
const uint32_t sr = UINT32_C(1) << gemm_config->log2_sr;
return kai_get_rhs_packed_stride_rhs_pack_kxn_qsi4cxp_qsu4cxs1s0(k, nr, kr,
sr);
return kai_get_rhs_packed_stride_rhs_pack_kxn_qsi4cxp_qsu4cxs1s0(k, /*nr=*/1,
kr, sr);
}

void xnn_pack_kai_qs4_weights_and_biases(
Expand Down

0 comments on commit ddeb3f7

Please sign in to comment.