Enable OpenVINO backend fallback to CPU backend#184
Open
zhaixuejun1993 wants to merge 2 commits into
Open
Conversation
This was referenced May 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request introduces enhancements to the tensor tracking and backend scheduling mechanisms in the GGML library. The main changes add support for tracking original source tensors during in-place operations, improve backend assignment logic, and enhance debugging and dynamic dimension computation. These improvements increase the robustness and debuggability of tensor operations, especially in complex backend and view scenarios.
Tensor tracking and metadata:
org_srcpointer to theggml_tensorstruct to keep track of original source tensors in in-place operations, and initialized it toNULLin tensor creation (ggml/include/ggml.h,ggml/src/ggml.c). [1] [2]Backend scheduling and assignment:
ggml_backend_sched_split_graphto check if a view source's backend supports the operation before assigning its backend ID to the current tensor, and to propagate backend IDs to view ops when appropriate (ggml/src/ggml-backend.cpp). [1] [2]org_srcfield is now set to the source tensor for better tracking (ggml/src/ggml-backend.cpp).Debugging and diagnostics:
ggml/src/ggml-backend.cpp).Dynamic dimension handling:
org_srcfield for root source tracking and added checks to ensure dynamic dimension logic only applies to tensors without an original source (ggml/src/ggml-openvino/ggml-decoder.cpp,ggml/src/ggml-openvino/ggml-decoder.h). [1] [2] [3]## OverviewAdditional information
Requirements