Skip to content

Add pybindings for Model Packaging - #33640

Open
Preetha Veeramalai (preetha-intel) wants to merge 1 commit into
microsoft:mainfrom
intel:pybindings/model_package
Open

Preetha Veeramalai (preetha-intel) wants to merge 1 commit into
microsoft:mainfrom
intel:pybindings/model_package

Conversation

@preetha-intel

Copy link
Copy Markdown
Contributor

Description

This PR adds Python bindings for the Model Package APIs. Python applications can now create, inspect and edit model packages, and select a variant and create an inference session from one. It also exposes set_ep_context_binary_information on ModelCompiler.

Changes

  • Add pybind bindings for model package authoring (ModelPackage) and for loading and selecting a variant (ModelPackageContext, ModelPackageOptions, ModelPackageComponentContext).
  • Add ModelCompiler.set_ep_context_binary_information.
  • Link model_package into the Python module and export the new classes from onnxruntime.
  • The bindings are not built in minimal builds.

Motivation and Context

The python API's are helpful in creating sample applications for public adoptions.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant