Add OrtModel input support for Compile API (#27332)
### Description
This change adds a feature to the Compile API, allowing an in-memory
OrtModel created via the Model Editor API to be compiled directly
without first serializing to a file or buffer.
### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
The Model Editor API and Compile API are both public C APIs in the ONNX
Runtime, but until now there was no way to pass a programmatically
constructed model directly to compilation. This change attempts to
closes that gap (see #26750) and ensures the new code path behaves
identically to the established file and buffer paths.
---------
Co-authored-by: Aditya Rastogi <adityar@ntdev.microsoft.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>