-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Description
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).