2021-02-11 21:46:50 +00:00
|
|
|
---
|
|
|
|
|
title: Python API
|
|
|
|
|
parent: API docs
|
|
|
|
|
grand_parent: Reference
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
# ONNX Runtime Python API
|
|
|
|
|
{: .no_toc }
|
|
|
|
|
|
|
|
|
|
## Contents
|
|
|
|
|
{: .no_toc }
|
|
|
|
|
|
|
|
|
|
* TOC placeholder
|
|
|
|
|
{:toc}
|
|
|
|
|
|
2021-05-10 22:19:37 +00:00
|
|
|
## Supported Versions
|
|
|
|
|
Python 3.6 - 3.9
|
2021-02-11 21:46:50 +00:00
|
|
|
|
2021-05-10 22:19:37 +00:00
|
|
|
## Builds
|
|
|
|
|
If using pip, run pip install `--upgrade pip` prior to downloading.
|
|
|
|
|
|
|
|
|
|
| Artifact | Description | Supported Platforms |
|
|
|
|
|
|----------- |-------------|---------------------|
|
|
|
|
|
|[onnxruntime](https://pypi.org/project/onnxruntime)|CPU (Release)| Windows (x64), Linux (x64, ARM64), Mac (X64), |
|
|
|
|
|
|[ort-nightly](https://test.pypi.org/project/ort-nightly)|CPU (Dev) | Same as above |
|
|
|
|
|
|[onnxruntime-gpu](https://pypi.org/project/onnxruntime-gpu)|GPU (Release)| Windows (x64), Linux (x64, ARM64) |
|
|
|
|
|
|[ort-gpu-nightly](https://test.pypi.org/project/ort-gpu-nightly)|GPU (Dev) | Same as above |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
For Python compiler version notes, see [this page](https://github.com/microsoft/onnxruntime/tree/master/docs/Python_Dev_Notes.md)
|
|
|
|
|
|
|
|
|
|
## API Reference
|
|
|
|
|
|
|
|
|
|
[https://www.onnxruntime.ai/python](https://www.onnxruntime.ai/python/)
|
|
|
|
|
|
|
|
|
|
## Samples
|
|
|
|
|
See [Tutorials: API Basics - Python](../../tutorials/inferencing/api-basics.md#python)
|