Skip to content

[ONNX] Fix the incorrect scale shape for the Conv layer when grouping is disabled - #4265

Merged
andrey-churkin merged 5 commits into
openvinotoolkit:developfrom
andrey-churkin:ac/cvs196586
Oct 23, 2026
Merged

andrey-churkin merged 5 commits into
openvinotoolkit:developfrom
andrey-churkin:ac/cvs196586

Conversation

@andrey-churkin

@andrey-churkin andrey-churkin commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Changes

  • [ONNX] Fix the incorrect scale shape for the Conv layer when grouping is disabled

Reason for changes

Related tickets

Tests

  • test_preprocess_compressed_weight

Conformance WC - success

@andrey-churkin
andrey-churkin requested a review from a team as a code owner October 12, 2026 12:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The tuple annotation is inaccurate, and the Conv regression lacks automated coverage.

2 open findings
What changed in this PR

Fixes ONNX Conv weight compression by correctly squeezing all reduction axes when grouping is disabled.

Changes:

  • Supports multi-axis scale and zero-point preprocessing.
  • Passes complete reduction-axis tuples through transformation paths.
File Description
src/​nncf/​quantization/​algorithms/​weight_compression/​onnx_backend.py Corrects Conv scale shaping during ONNX dequantization.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/nncf/quantization/algorithms/weight_compression/onnx_backend.py
Comment thread src/nncf/quantization/algorithms/weight_compression/onnx_backend.py Outdated
@anzr299
anzr299 self-requested a review October 15, 2026 14:44

@anzr299 anzr299 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add tests

Comment thread src/nncf/quantization/algorithms/weight_compression/onnx_backend.py Outdated
Comment thread src/nncf/quantization/algorithms/weight_compression/onnx_backend.py
Comment thread src/nncf/quantization/algorithms/weight_compression/onnx_backend.py Outdated
Comment thread src/nncf/quantization/algorithms/weight_compression/onnx_backend.py
@github-actions github-actions Bot added the NNCF ONNX Pull requests that updates NNCF ONNX label Oct 23, 2026
anzr299
anzr299 approved these changes Oct 23, 2026 •
@andrey-churkin
andrey-churkin merged commit c1f70f9 into openvinotoolkit:develop Oct 23, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NNCF ONNX Pull requests that updates NNCF ONNX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants