-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[EP ABI] API to get external initializer info + lazy load external OrtValues #25482
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 24 commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
e4c8244
Adjust InlineIfNode
yuslepukhin 5dc217e
Merge branch 'main' into yusleoukhin/ort_initializers_ii
yuslepukhin ffb9bbe
Fix a bug in Initializer::ToProtoWithOrtValue
yuslepukhin e19b938
Address type conversion
yuslepukhin 564c29f
Adjust ToProto() handling of in external data in memory
yuslepukhin 507eb56
Make CoreML accept external initializers
yuslepukhin 5e89498
Fix handling of external data in ToProto*()
yuslepukhin fdcdc12
Fix compiler error
yuslepukhin 6e29d73
Merge branch 'yuslepukhin/ort_initializers_mac' into yusleoukhin/ort_…
yuslepukhin a0635b7
Address compile error in Mac code
yuslepukhin e81b06c
Merge branch 'main' into yusleoukhin/ort_initializers_ii
yuslepukhin 4cbddc9
Adjust in memory references when saving optimized model
yuslepukhin 6ab9839
Merge branch 'main' into yusleoukhin/ort_initializers_ii
yuslepukhin 582f27c
Address ToGraphProto() issues
yuslepukhin a636579
Fix ToGraphProto() and recreate test databases for test_embedlayer_fu…
yuslepukhin 83c313f
GCC not happy about attr placement
yuslepukhin 2c0f97e
Address build error
yuslepukhin 5c15725
Address compiler error
yuslepukhin a6b2576
Adjust test data for fastgelu fusion
yuslepukhin bf4e81c
[EP ABI] Load external initializer OrtValues on demand
adrianlizarraga 7077654
Add comment about unique_ptr<OrtValue>
adrianlizarraga f59c9c6
Address review comments
yuslepukhin 64de315
Add comment and resolve compiler error
yuslepukhin ff49046
Update utility to only load OrtValue for external initializers
adrianlizarraga 820400e
Add unit tests that load external initializers as OrtValues on deman
adrianlizarraga 38de20f
Dont require non-minimal build to load an external initializer into a…
adrianlizarraga 582d6ba
Add draft of APIs to get external initializer info
adrianlizarraga eb6a4a1
Address some review comments
adrianlizarraga b3b384c
Clean up before refactor to incrementally build ext_initializer_infos_
adrianlizarraga 397fd13
Address review comments
yuslepukhin a9446ba
Test the new API functions to get external initializer information
adrianlizarraga 74adc0c
Address ReplaceInitializedTensor
adrianlizarraga b6073aa
incrementally add elements to external_data_info_ as needed
adrianlizarraga 93d5614
Address review comments
yuslepukhin 5b2f994
Clean up
adrianlizarraga 8fe5d11
Merge branch 'yusleoukhin/ort_initializers_ii' into adrianl/ep-plugin…
adrianlizarraga 15e6d5f
Correct tensor size calculation
adrianlizarraga 9fd06a0
Test and fix cases where we add an entry to external_data_infos_ for …
adrianlizarraga 9a8778b
Use HasExternalDataInFile just to be more general
adrianlizarraga 647e659
Merge main and fix conflicts
adrianlizarraga 42aba9b
Apply suggestions from code review
adrianlizarraga 786e6d7
Address more review comments
adrianlizarraga e65855d
Address review comment: do not cache OrtValue over external initializ…
adrianlizarraga 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
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.
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.