Skip to content

[SIT] Add post proc options for l2norm#36900

Open
svigh wants to merge 1 commit into
openvinotoolkit:masterfrom
svigh:EISW-215382_l2norm_post_proc
Open

[SIT] Add post proc options for l2norm#36900
svigh wants to merge 1 commit into
openvinotoolkit:masterfrom
svigh:EISW-215382_l2norm_post_proc

Conversation

@svigh

@svigh svigh commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Details:

  • Add post proc options for l2norm

Tickets:

AI Assistance:

  • AI assistance used: yes
  • If yes, summarize how AI was used and what human validation was performed (build/tests/manual checks): implemented dequant logic, manually tested

@svigh
svigh requested review from Copilot and fcmiron July 15, 2026 11:18
@svigh
svigh requested review from a team as code owners July 15, 2026 11:18
@svigh
svigh requested review from michalzx and removed request for a team July 15, 2026 11:18
@github-actions github-actions Bot added category: docs OpenVINO documentation category: NPU OpenVINO NPU plugin labels Jul 15, 2026

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.

Pull request overview

This PR extends the Intel NPU single-image-test tool’s l2norm comparison mode with optional output dequantization (scale + zero-point) so quantized inference outputs can be converted before computing the L2 norm against reference tensors.

Changes:

  • Added new CLI flags l2norm_dequant_scale and l2norm_dequant_zp (global or per-output) and surfaced them in tool help output.
  • Updated l2norm computation path to optionally dequantize the inference output before comparison, leaving the reference tensor untouched.
  • Added helper utilities to distinguish global vs explicit per-layer (per-output) values.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/plugins/intel_npu/tools/single-image-test/README.md Documents new l2norm dequantization flags.
src/plugins/intel_npu/tools/single-image-test/main.cpp Implements optional dequantization in l2norm metric evaluation.
src/plugins/intel_npu/tools/single-image-test/argument_parse_helpers.hpp Declares new flags and adds helpers for global vs explicit per-layer values.
src/plugins/intel_npu/tools/single-image-test/argument_parse_helpers.cpp Defines new flags, prints them in l2norm mode, and implements the new helper functions.

Comment on lines +117 to +121
-l2norm_dequant_zp (Optional. Dequantization zero point used together
with --l2norm_dequant_scale for 'l2norm' mode. Can be a single global
value or per-output: 'output1:128;output2:0'. Defaults to 0 for any
output without an explicit value. Has no effect unless
--l2norm_dequant_scale is set.) type: string default: ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: docs OpenVINO documentation category: NPU OpenVINO NPU plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants