Skip to content

Conversation

@pereanub
Copy link
Contributor

Details:

  • Support for dynamic strides

Tickets:

@pereanub pereanub requested review from a team as code owners October 31, 2025 08:23
@pereanub pereanub requested review from tsavina and removed request for a team October 31, 2025 08:23
@github-actions github-actions bot added category: inference OpenVINO Runtime library - Inference category: docs OpenVINO documentation category: CPP API OpenVINO CPP API bindings category: NPU OpenVINO NPU plugin labels Oct 31, 2025
@pereanub pereanub added the WIP work in progress label Oct 31, 2025
Signed-off-by: Bogdan Pereanu <[email protected]>
@github-actions github-actions bot removed the category: docs OpenVINO documentation label Nov 3, 2025
ov::CompiledModel compiled_model;
auto model = createModel(element::f32, shape, "N...");

configuration[ov::intel_npu::inputs_with_dynamic_strides.name()] = {1};
Copy link

Choose a reason for hiding this comment

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

We index IO from 0 so both inputs_with_dynamic_strides and outputs_with_dynamic_strides should be set to {0}


_logger.debug("setGraphArgumentValue - perform pfnSetArgumentValue2 for strides");
auto result =
_zeroInitStruct->getGraphDdiTable().pfnSetArgumentValue2(graphDescriptor._handle,
Copy link

Choose a reason for hiding this comment

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

It would be better to set it in one go together with data pointer

ze_graph_properties_3_t graphProperties = {};
graphProperties.stype = ZE_STRUCTURE_TYPE_GRAPH_PROPERTIES;
graphProperties.pNext = &graphArgumentPropertyStrides;
auto result = _zeroInitStruct->getGraphDdiTable().pfnGetProperties3(graphDescriptor._handle, &graphProperties);
Copy link

Choose a reason for hiding this comment

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

Dynamic strides support is indicated for each argument. pfnGetProperties3 won't fill in this structure

Copy link

Choose a reason for hiding this comment

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

I think this file is missing the code to calculate start address of the ROI tensor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: CPP API OpenVINO CPP API bindings category: inference OpenVINO Runtime library - Inference category: NPU OpenVINO NPU plugin do_not_merge do_not_review WIP work in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants