Skip to content

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

@adrastogi

Description

@adrastogi

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    ep:WebNNWebNN execution providerfeature requestrequest for unsupported feature or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions