-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OrtGraphApis::OrtNode_GetAttributeStrWithSize to handle case wher…
…e attribute might contain null character (#22769) When running EP Context model, EP might call `OrtGraphApis::OrtNode_GetAttributeStr` to get the string-based content of the attribute. However, the API returns the c_str() of the string, and it's possible that the cache context contains null character, so the string might be cut off and caller ends up getting the wrong string. Add a new OrtGraphApis::OrtNode_GetAttributeStrWithSize to return const char* pointer and string size.
- Loading branch information
Showing
4 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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