CVS-178227 : Fix tensor data access for OpenVINO 2026.0 compatibility #886
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fixes OpenVINO EP compatibility with OpenVINO 2026.0 by updating tensor data access patterns to use raw untyped
data()accessor instead of templateddata<T>().Motivation & Context
OpenVINO 2026.0 introduced two breaking changes for
ov::Tensordata access:Read-only memory-mapped tensors: Memory-mapped tensors from
ov::read_tensor_data()now useReadOnlyViewTensorwhich throws when calling the templateddata<T>()method.Sub-byte element types (i4/u4): Tensors with INT4 or UINT4 element types fail the
is_pointer_representablecheck when callingdata<uint8_t>().Resolves Runtime Errors
Error 1 - Read-only tensor access:
Error 2 - Sub-byte type access:
Changes
Updated tensor data access in 3 files to use raw untyped
data()accessor:ov_shared_context.ccov_bin_manager.ccov_allocator.ccBefore:
After:
The untyped
data()accessor:is_pointer_representablecheck for sub-byte types (i4/u4)ov::op::v0::Constantconstructor)JIRA: https://jira.devtools.intel.com/browse/CVS-178227