Skip to content

Restrict get_constant_buffer deduplication to buffers created by get_constant_buffer itself so new constants (such as blockwise scales) cannot alias an original weight buffer that is later mutated in place by quantization. Adds a unit test verifying original model buffers are never reused. - #12326

Merged
copybara-service[bot] merged 1 commit into
mainfrom
litert_pr_1027676813
Nov 24, 2026

Conversation

@copybara-service

Copy link
Copy Markdown

Restrict get_constant_buffer deduplication to buffers created by get_constant_buffer itself so new constants (such as blockwise scales) cannot alias an original weight buffer that is later mutated in place by quantization. Adds a unit test verifying original model buffers are never reused.

…et_constant_buffer` itself so new constants (such as blockwise scales) cannot alias an original weight buffer that is later mutated in place by quantization. Adds a unit test verifying original model buffers are never reused.

LiteRT-PiperOrigin-RevId: 1028779137
@copybara-service
copybara-service Bot merged commit 67316d7 into main Nov 24, 2026
10 checks passed
@copybara-service
copybara-service Bot deleted the litert_pr_1027676813 branch November 24, 2026 07:50
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