Skip to content

[Protopipe] EISW-225277 Add boolean type - #37422

Open
svigh wants to merge 5 commits into
openvinotoolkit:masterfrom
svigh:EISW-225277_add_boolean_type
Open

[Protopipe] EISW-225277 Add boolean type#37422
svigh wants to merge 5 commits into
openvinotoolkit:masterfrom
svigh:EISW-225277_add_boolean_type

Conversation

@svigh

@svigh svigh commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Details:

  • Add BOOLEAN pseudo-type support in protopipe

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 resolveInitializers, human validation done

@svigh
svigh requested review from a team as code owners August 13, 2026 11:41
@svigh
svigh requested review from ValentinaKats and removed request for a team August 13, 2026 11:41
@github-actions github-actions Bot added category: docs OpenVINO documentation category: NPU OpenVINO NPU plugin labels Aug 13, 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 adds support for a BOOL pseudo-precision in the Intel NPU protopipe tool, ensuring boolean tensors are treated as boolean at the OpenVINO precision level while still using CV_8U as the physical cv::Mat storage type (and generating valid 0/1 random input data by default).

Changes:

  • Introduces utils::kBooleanDepth and utils::toPhysicalDepth() to distinguish logical BOOL from physical CV_8U storage.
  • Extends precision parsing and OpenVINO precision conversion to handle BOOL / ov::element::boolean.
  • Refactors initializer resolution into resolveInitializers() with BOOL-aware defaults and updates docs/version accordingly.

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/plugins/intel_npu/tools/protopipe/version.hpp.in Bumps protopipe app version to v1.2.5.
src/plugins/intel_npu/tools/protopipe/src/utils/utils.hpp Adds BOOL pseudo-depth marker and toPhysicalDepth() declaration.
src/plugins/intel_npu/tools/protopipe/src/utils/utils.cpp Ensures cv::Mat::create() uses physical depth (CV_8U for BOOL).
src/plugins/intel_npu/tools/protopipe/src/utils/data_providers.hpp Adds <string> include needed for generator stringification API.
src/plugins/intel_npu/tools/protopipe/src/utils/data_providers.cpp Ensures RandomProvider::desc() reports physical depth for G-API metadata.
src/plugins/intel_npu/tools/protopipe/src/simulation/simulation.cpp Maps configured output precision to physical depth for network compilation.
src/plugins/intel_npu/tools/protopipe/src/simulation/reference_mode.cpp Switches to centralized initializer resolution (resolveInitializers).
src/plugins/intel_npu/tools/protopipe/src/simulation/performance_mode.cpp Switches to centralized initializer resolution (resolveInitializers).
src/plugins/intel_npu/tools/protopipe/src/simulation/ov_layers_reader.cpp Adds OV boolean precision mapping to/from protopipe precision representation.
src/plugins/intel_npu/tools/protopipe/src/simulation/layers_data.hpp Declares resolveInitializers() with precision-aware fallback behavior.
src/plugins/intel_npu/tools/protopipe/src/simulation/layers_data.cpp Implements resolveInitializers() and BOOL default generator (0/1 values).
src/plugins/intel_npu/tools/protopipe/src/simulation/accuracy_mode.cpp Switches to centralized initializer resolution (resolveInitializers).
src/plugins/intel_npu/tools/protopipe/src/parser/config.cpp Adds parsing support for BOOL precision in config.
src/plugins/intel_npu/tools/protopipe/README.md Documents BOOL precision and clarifies default random initialization for BOOL inputs.

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

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