Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Use macros for model compat APIs
  • Loading branch information
Aditya Rastogi committed Jul 22, 2025
commit dc6f9a07d2d26e4438934aea2b0ce0172b981ec6
10 changes: 5 additions & 5 deletions include/onnxruntime/core/session/onnxruntime_ep_c_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,8 @@ struct OrtEp {
*
* \since Version 1.23.
*/
const char*(ORT_API_CALL* GetCompiledModelCompatibilityInfo)(_In_ OrtEp* this_ptr,
_In_ const OrtGraph* graph);
ORT_API_T(const char*, GetCompiledModelCompatibilityInfo, _In_ OrtEp* this_ptr,
_In_ const OrtGraph* graph);
};

/** \brief The function signature that ORT will call to create OrtEpFactory instances.
Expand Down Expand Up @@ -873,9 +873,9 @@ struct OrtEpFactory {
*
* \since Version 1.23.
*/
OrtStatus*(ORT_API_CALL* ValidateCompiledModelCompatibilityInfo)(_In_ OrtEpFactory* this_ptr,
_In_ const char* compatibility_info,
_Out_ OrtCompiledModelCompatibility* model_compatibility);
ORT_API2_STATUS(ValidateCompiledModelCompatibilityInfo, _In_ OrtEpFactory* this_ptr,
_In_ const char* compatibility_info,
_Out_ OrtCompiledModelCompatibility* model_compatibility);

/** \brief Create an OrtAllocator that can be shared across sessions for the given OrtMemoryInfo.
*
Expand Down
Loading