onnxruntime icon indicating copy to clipboard operation
onnxruntime copied to clipboard

[Feature Request] Enable interop between model editor APIs and new ORT compile APIs

Open adrastogi opened this issue 1 month ago • 0 comments

Describe the feature request

There were some new APIs introduced earlier in the year to streamline the process of compiling ORT models, i.e., https://onnxruntime.ai/docs/api/c/struct_ort_compile_api.html.

These APIs can accept the model as a file path or as a buffer. This feature request proposes extending the API to support models generated via the model editor APIs. https://onnxruntime.ai/docs/api/c/struct_ort_model_editor_api.html#details

Describe scenario use case

This would be useful for WebNN scenarios where the browser crafts the model graph using the editor APIs. There is currently no way to pass the composed graph API to the compile API. Ideally this could be done in a way that performs the compilation in-memory (the browser's GPU sandbox process is heavily restricted and cannot write data to the file system).

adrastogi avatar Dec 08 '25 06:12 adrastogi