Skip to content

[EP ABI] Sample QDQ utilities#25753

Draft
adrianlizarraga wants to merge 14 commits intomainfrom
adrianl/ep-abi-qdq-utils
Draft

[EP ABI] Sample QDQ utilities#25753
adrianlizarraga wants to merge 14 commits intomainfrom
adrianl/ep-abi-qdq-utils

Conversation

@adrianlizarraga
Copy link
Contributor

Description

Provides a sample header-only utility file to group OrtNode instances into NodeUnit instances (for QDQ models).

#define ORT_EP_UTILS_QDQ_UTILS_IMPL
#include "qdq_utils.h"

OrtStatus* ORT_API_CALL GetCapabilityImpl(OrtEp* this_ptr, const OrtGraph* ort_graph,
                                          OrtEpGraphSupportInfo* graph_support_info) {
  std::vector<std::unique_ptr<OrtEpUtils::QDQ::NodeUnit>> node_units;
  std::unordered_map<const OrtNode*, const OrtEpUtils::QDQ::NodeUnit*> node_unit_map;
  
  // Group all nodes into NodeUnit instances.
  Ort::Status status = OrtEpUtils::QDQ::GetAllNodeUnits(graph, logger, node_units, node_unit_map);
  // ...
}

Motivation and Context

Make it easier to port existing EPs to use the new EP ABI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants