Skip to content

Conversation

@n1harika
Copy link

@n1harika n1harika commented Nov 25, 2025

To prevent recompilation of epctx models, a check was introduced to prevent the provider option 'reshape_input' from being used with epctx graphs. However, this also prevents OVIR models from compiling with the reshape input.
This PR modifies the check on epctx graphs to allow reshape for OVIR models and also adds a method to reshape it within the ImportEPCtxOVIREncapsulation() function.

Test:

onnxruntime_perf_test -m times -r 1 -e openvino -v -C "ep.context_enable|1 ep.context_file_path|ov_encoder_30_40_ctx.onnx" -i "device_type|NPU reshape_input|input_features[30..40,80,3000]" "openvino_encoder_model.onnx"

This should fail if input data>40 is provided.

Also removed redundant validation and checks on the OVEP side, to let OV handle reshape validation completely.

@n1harika n1harika force-pushed the niharika/reshape_ovir branch from e902bb9 to 1406fe4 Compare December 3, 2025 10:25
Copy link

@jatinwadhwa921 jatinwadhwa921 left a comment

Choose a reason for hiding this comment

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

LGTM

@n1harika n1harika merged commit e0779f2 into ovep-develop Dec 9, 2025
6 of 8 checks passed
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.

3 participants