-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Extend OrtAllocator API to get Allocator statistics #24785
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 28 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
343f920
Add api to get allocator stats.
toothache c08b129
Address the comments.
toothache f591045
Fix UT.
toothache 0e9c691
Raise not implemented exception in default IAllocator::GetStats.
toothache 6911375
Polish the code.
toothache 36a060e
Address comments.
toothache 9a69706
Debug CI failure.
toothache e746426
Return OrtStatus in IAllocator:GetStats.
toothache 11d68e5
Fix UT.
toothache eefc347
Update UT.
toothache f0267e9
Fix lint.
toothache c6e8908
Fix lint.
toothache 6b53fe2
Return ORT_NOT_IMPLEMENTED in default cpu allocator.
toothache 848c30a
Return E_NOT_IMPLEMENTED in NO_RTTI case.
toothache 39aa2b1
Update onnxruntime_c_api.cc
toothache 7dc51ce
Fix UT.
toothache 73bb00c
Move NO_RTTI check in OrtAllocator entry.
toothache efa2024
Add back RTTI check in c_api
toothache 5358ccb
Added comments.
toothache 999c2e7
Fix build issues with c++17 prior.
toothache 4236d19
Update API to return OrtKeyValuePairs.
toothache ed9eb69
Update UT.
toothache 31f2e19
Update.
toothache ab4eba9
Fix build.
toothache f3cd26b
Address comments.
toothache 378e05c
Address comments.
toothache ffbdd3d
Update apidoc
toothache 6699a72
Fix leak.
toothache 14027ae
Address comments.
toothache e8085f5
Remove version check.
toothache 84f4866
Fix build.
toothache File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,4 +51,4 @@ struct AllocatorStats { | |
return ss.str(); | ||
} | ||
}; | ||
} // namespace onnxruntime | ||
} // namespace onnxruntime |
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.