Skip to content

OpenVINO Backend: Upgrade graph cache to use n_leaves, node_idx, src_idx, and node type - #321

Open
mostafafaheem wants to merge 1 commit into
ravi9:dev_backend_openvinofrom
mostafafaheem:cache
Open

mostafafaheem wants to merge 1 commit into
ravi9:dev_backend_openvinofrom
mostafafaheem:cache

Conversation

@mostafafaheem

Copy link
Copy Markdown
Collaborator

Overview

Adds graph cache fields:
1. input_srcs: "<node_idx>:<src_idx>:<op_type>"
2. n_leaves

Instead of tensor names, this also avoids an O(n_nodes^2) loop (std::find(node_names.begin(), node_names.end(), src_name) inside a for loop)

Additional information

Replaces #261

Requirements

@mostafafaheem

Copy link
Copy Markdown
Collaborator Author

@cavusmustafa I tried submitting this PR to your branch but the diff was messy because the forks are out of sync, so feel free to cherry pick if you agree with this approach. I thought it would be more robust than buffer addresses used in #261.

@ravi9
ravi9 force-pushed the dev_backend_openvino branch from 40a2a96 to 972d231 Compare September 17, 2026 17:37
@mostafafaheem
mostafafaheem force-pushed the cache branch 2 times, most recently from 6b572e4 to 4fbbf0b Compare September 19, 2026 10:24
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