Skip to content

Enable zero-size copy for OpenVINO backend view#243

Merged
zhaixuejun1993 merged 1 commit into
ravi9:dev_backend_openvinofrom
zhaixuejun1993:xuejun/fix-view_cpy-issue
Jul 7, 2026
Merged

Enable zero-size copy for OpenVINO backend view#243
zhaixuejun1993 merged 1 commit into
ravi9:dev_backend_openvinofrom
zhaixuejun1993:xuejun/fix-view_cpy-issue

Conversation

@zhaixuejun1993

Copy link
Copy Markdown
Collaborator

This pull request refactors how the code checks for supported tensor view operations when copying data in the OpenVINO backend. The main improvement is the introduction of helper functions to clarify and centralize the logic for validating tensor views, making the code more robust and maintainable.

Tensor view validation improvements:

  • Added tensor_view_fits_src_buffer() to ensure a tensor view does not exceed the source buffer's bounds.
  • Added cpy_output_view_is_supported() to encapsulate the logic for checking if a tensor copy operation into a view is supported, including checks for buffer bounds and contiguity.
  • Updated the unsupported operation check in is_op_unsupported_case() to use the new cpy_output_view_is_supported() function, replacing a less comprehensive condition.## Overview

Additional information

Requirements

@zhaixuejun1993
zhaixuejun1993 merged commit 887dade into ravi9:dev_backend_openvino Jul 7, 2026
6 of 17 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.

1 participant