Prototype getting EP graph partitioning info from OrtSession - #24688
Closed
adrianlizarraga wants to merge 11 commits into
Closed
Prototype getting EP graph partitioning info from OrtSession#24688adrianlizarraga wants to merge 11 commits into
adrianlizarraga wants to merge 11 commits into
Conversation
Contributor
|
How stable is this C API? I'd like to build a Java frontend on top of it to help me run down #23154. |
Contributor
Author
yuslepukhin
reviewed
May 13, 2025
| const EpContextModelGenerationOptions& ep_context_gen_options = {}, | ||
| const layout_transformation::DebugGraphFn& debug_graph_fn = {}) const; | ||
| const layout_transformation::DebugGraphFn& debug_graph_fn = {}, | ||
| const OnPartitionAssignmentFunction& on_partition_assign_fn = {}) const; |
Contributor
There was a problem hiding this comment.
yuslepukhin
reviewed
May 13, 2025
| } | ||
|
|
||
| if (is_valid_partition) { | ||
| ComputeCapability__SetHardwareDevice(*partition, hardware_device_); |
Contributor
yuslepukhin
reviewed
May 13, 2025
| R"pbdoc(The OrtHardwareDevice instance for the OrtEpDevice.)pbdoc", | ||
| py::return_value_policy::reference_internal); | ||
|
|
||
| py::class_<EpAssignedNode> py_ep_node(m, "EpAssignedNode", |
Contributor
Contributor
Author
|
Closing this in favor of #26781 |
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
Structure of returned information
The API returns a list of "subgraphs". Each subgraph has the following information:
{"Conv": 10, "Transpose": 3, ...}[{"multiply", "Mul"}, ...]Python example program (taken from unit tests):
C++ program (taken from unit test):
Motivation and Context