Skip to content

Conversation

@n1harika
Copy link

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.

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.

2 participants