Conversation
5bfc8eb to
fc9db07
Compare
d539da2 to
1d1c874
Compare
81c2b9e to
7b11848
Compare
skottmckay
reviewed
Dec 16, 2024
include/onnxruntime/core/providers/coreml/coreml_provider_factory.h
Outdated
Show resolved
Hide resolved
include/onnxruntime/core/providers/coreml/coreml_provider_factory.h
Outdated
Show resolved
Hide resolved
include/onnxruntime/core/providers/coreml/coreml_provider_factory.h
Outdated
Show resolved
Hide resolved
skottmckay
reviewed
Dec 16, 2024
Co-authored-by: Scott McKay <[email protected]>
skottmckay
reviewed
Dec 19, 2024
include/onnxruntime/core/providers/coreml/coreml_provider_factory.h
Outdated
Show resolved
Hide resolved
include/onnxruntime/core/providers/coreml/coreml_provider_factory.h
Outdated
Show resolved
Hide resolved
include/onnxruntime/core/providers/coreml/coreml_provider_factory.h
Outdated
Show resolved
Hide resolved
…ory.h Co-authored-by: Scott McKay <[email protected]>
skottmckay
reviewed
Dec 20, 2024
Co-authored-by: Scott McKay <[email protected]>
Contributor
|
Are there any unit tests for the new code? We should be able to test that the expected cache files are created in the right places and that things like invalid cache key values are rejected. |
skottmckay
reviewed
Dec 23, 2024
Co-authored-by: Scott McKay <[email protected]>
Contributor
Author
Added unit test for three cases where hash is valid or invalid. |
added 2 commits
December 24, 2024 15:18
skottmckay
approved these changes
Dec 30, 2024
tarekziade
pushed a commit
to tarekziade/onnxruntime
that referenced
this pull request
Jan 10, 2025
### Description Refactor compute plan profiling Support cache coreml model to speed up session initialization. this is only support by user provided entry and user responsible to manage the cache With the cache, session initialization time can be reduced by 50% or more: |model| before| after| |--|--|--| |yolo11.onnx| 0.6s|0.1s| |yolo11-fp16.onnx|1.8s|0.1s| ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> --------- Co-authored-by: wejoncy <[email protected]> Co-authored-by: Scott McKay <[email protected]>
guschmue
pushed a commit
that referenced
this pull request
Jan 12, 2025
### Description Refactor compute plan profiling Support cache coreml model to speed up session initialization. this is only support by user provided entry and user responsible to manage the cache With the cache, session initialization time can be reduced by 50% or more: |model| before| after| |--|--|--| |yolo11.onnx| 0.6s|0.1s| |yolo11-fp16.onnx|1.8s|0.1s| ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> --------- Co-authored-by: wejoncy <[email protected]> Co-authored-by: Scott McKay <[email protected]>
ashrit-ms
pushed a commit
that referenced
this pull request
Mar 17, 2025
### Description Refactor compute plan profiling Support cache coreml model to speed up session initialization. this is only support by user provided entry and user responsible to manage the cache With the cache, session initialization time can be reduced by 50% or more: |model| before| after| |--|--|--| |yolo11.onnx| 0.6s|0.1s| |yolo11-fp16.onnx|1.8s|0.1s| ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> --------- Co-authored-by: wejoncy <[email protected]> Co-authored-by: Scott McKay <[email protected]>
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.
Description
Refactor compute plan profiling
Support cache coreml model to speed up session initialization. this is only support by user provided entry and user responsible to manage the cache
With the cache, session initialization time can be reduced by 50% or more:
Motivation and Context