We're always looking for your help to improve the product (bug fixes, new features, documentation, etc).
Enable the repo's pre-commit hook to run lintrunner automatically before each commit:
git config core.hooksPath .githooks
If lint issues are found, the commit is blocked. Run lintrunner -a to auto-fix, re-stage, and commit again. Use git commit --no-verify to bypass.
Note:
core.hooksPathreplaces Git's default hook directory (.git/hooks/). If you have existing custom hooks, you may need to integrate them manually.
ONNX Runtime has a collection of public APIs. Some of these APIs make their way back into the Windows OS. We make compatibility commitments for these APIs and follow a structured process when adding to them. Please use the Feature Request issue template before starting any PRs that affect any of the public APIs.
If your proposal contributes the Windows Machine Learning WinRT API and will affect the Windows.AI.MachineLearning namespace, please review Windows ML main principles before you submit your request.
Please search the issue tracker for a similar idea first: there may already be an issue you can contribute to.
Create Issue
To propose a new feature or API please start by filing a new issue in the issue tracker.
Include as much detail as you have. It's fine if it's not a complete design: just a summary and rationale is a good starting point.
Discussion
We'll keep the issue open for community discussion until it has been resolved or is deemed no longer relevant.
Note that if an issue isn't a high priority or has many open questions then it might stay open for a long time.
Owner Review
The ONNX Runtime team will review the proposal and either approve or close the issue based on whether it broadly aligns with the Onnx Runtime Roadmap - High Level Goals section and contribution guidelines.
API Review
If the feature adds new APIs then we'll start an API review. All new public APIs must be reviewed before merging.
For making changes to the C API refer to guidance here.
For making changes to the Windows Machine Learning WinRT API, please label your request as api:WinML, and someone from the Windows ML team will work with you.
Implementation
Tutorials, how-to guides and API reference docs for ONNX Runtime are published at https://onnxruntime.ai/docs.
The html docs are generated from markdown using Jekyll and published using GitHub Pages.
To update the docs, create a Pull Request against the gh-pages branch of the ONNX Runtime repo.
To preview your changes, you can push to the gh-pages branch in your fork and this will publish a staged version of your changes to .github.io/onnxruntime/docs.
Once your PR is approved and merged, your changes will be automatically published to https://onnxruntime.ai/docs.
Note: technical reference docs for developers of ONNX Runtime source code can be found here
This project welcomes contributions and suggestions. Most contributions require you to
agree to a Contributor License Agreement (CLA) declaring that you have the right to,
and actually do, grant us the rights to use your contribution. For details, visit
https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need
to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the
instructions provided by the bot. You will only need to do this once across all repositories using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct.
For more information see the Code of Conduct FAQ
or contact opencode@microsoft.com with any additional questions or comments.
Security issues and bugs should be reported privately, via email, to the Microsoft Security
Response Center (MSRC) at secure@microsoft.com. You should
receive a response within 24 hours. If for some reason you do not, please follow up via
email to ensure we received your original message. Further information, including the
MSRC PGP key, can be found in
the Security TechCenter.