Skip to content

OVInferRequest::SetTensor: Set tensor upon cached_binding shape mismatch - #783

Merged
sfatimar merged 1 commit into
intel:ovep-developfrom
RyanMetcalfeInt8:fix_tensor_cache_same_ptr_diff_shape
Aug 21, 2025
Merged

OVInferRequest::SetTensor: Set tensor upon cached_binding shape mismatch#783
sfatimar merged 1 commit into
intel:ovep-developfrom
RyanMetcalfeInt8:fix_tensor_cache_same_ptr_diff_shape

Conversation

@RyanMetcalfeInt8

Copy link
Copy Markdown

Description

SetTensor previously only accounted for tensor ptr value to decide whether it needed to actually call ovInfReq.set_tensor. But this is problematic, as the user app can wrap a buffer with ORT tensors of differing shapes between different calls to session.run.

For this cache binding feature, we also need to take into account shape.

@sfatimar
sfatimar merged commit e634654 into intel:ovep-develop Aug 21, 2025
3 of 5 checks passed
@sfatimar

Copy link
Copy Markdown

@RyanMetcalfeInt8 please mention JIRA ID here

@RyanMetcalfeInt8

Copy link
Copy Markdown
Author

@RyanMetcalfeInt8 please mention JIRA ID here

There isn't one.

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