Enable OpenVINO backend fallback to CPU backend#130
Open
zhaixuejun1993 wants to merge 1 commit intoravi9:dev_backend_openvinofrom
Open
Enable OpenVINO backend fallback to CPU backend#130zhaixuejun1993 wants to merge 1 commit intoravi9:dev_backend_openvinofrom
zhaixuejun1993 wants to merge 1 commit intoravi9:dev_backend_openvinofrom
Conversation
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 tensor tracking and backend scheduling in the GGML library, primarily to improve handling of in-place operations and debugging. The changes add a new field to the tensor structure for tracking original source tensors, propagate this information through backend scheduling and OpenVINO decoder logic, and improve debugging by modifying tensor naming.
Tensor structure and tracking improvements:
org_srcpointer to theggml_tensorstruct to track the original source tensor in in-place operations, and increased thepaddingsize to accommodate this change. (ggml/include/ggml.h,ggml/src/ggml.c) [1] [2]org_srcfield is set to the source tensor, preserving provenance information. (ggml/src/ggml-backend.cpp)Backend scheduling and debugging:
ggml/src/ggml-backend.cpp) [1] [2]ggml/src/ggml-backend.cpp)OpenVINO decoder logic:
org_srcfield when determining dynamic dimensions and input/output relationships, ensuring correct handling of tensors originating from in-place operations. (ggml/src/ggml-openvino/ggml-decoder.cpp,ggml/src/ggml-openvino/ggml-decoder.h) [1] [2] [3]## OverviewAdditional information
Requirements