Skip to content

Fix multi-axis blockwise quantization in octav.get_tensor_quant_params: - #11990

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
litert_pr_1023320192
Open

copybara-service[bot] wants to merge 1 commit into
mainfrom
litert_pr_1023320192

Conversation

@copybara-service

Copy link
Copy Markdown

Fix multi-axis blockwise quantization in octav.get_tensor_quant_params:

  • Pass the last tensor axis (ndim - 1) to reshape_data_for_blockwise when quantized_dimensions specifies multiple axes, avoiding a KeyError lookup on CUSTOM_OP in TFL_OP_TO_BLOCKWISE_WEIGHT_QUANTIZED_DIM.
  • Populate quantized_dimensions instead of quantized_dimension on UniformQuantParams for multi-axis configurations.

@copybara-service
copybara-service Bot force-pushed the litert_pr_1023320192 branch 3 times, most recently from c3200da to 979c402 Compare November 19, 2026 23:07
…ms`:

- Pass the last tensor axis (`ndim - 1`) to `reshape_data_for_blockwise` when `quantized_dimensions` specifies multiple axes, avoiding a `KeyError` lookup on `CUSTOM_OP` in `TFL_OP_TO_BLOCKWISE_WEIGHT_QUANTIZED_DIM`.
- Populate `quantized_dimensions` instead of `quantized_dimension` on `UniformQuantParams` for multi-axis configurations.

LiteRT-PiperOrigin-RevId: 1023320192
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant