Describe the feature request
In WebNN, we construct the graph in-memory as an OrtModel using the Model Editor API, but OrtCompileApi currently only supports setting the input model via a file path or buffer (ModelCompilationOptions_SetInputModelPath ModelCompilationOptions_SetInputModelFromBuffer).
Describe scenario use case
This feature is needed for WebNN model cache implementation.