# microsoft/onnxruntime-inference-examples

Examples for using ONNX Runtime for machine learning inferencing.

Repository: https://github.com/microsoft/onnxruntime-inference-examples
Canonical: https://ross.abutalabs.com/products/onnxruntime-inference-examples
Language: C++
License: MIT
License Family: permissive
Last push: 2026-02-24T00:18:26+00:00

## Health v2 (maintenance only)
Score: 63/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 69, release rhythm 35, longevity 100
- inputs: {"age_days": 1972, "days_push": 191, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1676, forks 413 (observed 2026-08-28T04:05:20.824716+00:00)

## What it is
A collection of official examples from Microsoft demonstrating how to use ONNX Runtime for machine learning inferencing across C/C++, JavaScript, mobile, and quantization workflows. It serves as reference sample code accompanying the ONNX Runtime library.

## Use cases
- learn how to run onnx models with onnx runtime
- example code for onnx runtime c++ api
- run machine learning inference on mobile with onnx runtime
- onnx runtime javascript inference examples
- quantize onnx models for cpu and tensorrt
- sample apps using onnx runtime for inference

## When to choose
- you are learning ONNX Runtime and want working reference code
- you need examples for C/C++, JavaScript, or mobile ONNX Runtime integration
- you want to see quantization workflows with CPU or TensorRT execution providers

## When to avoid
- you need the ONNX Runtime library itself rather than examples
- you want training or model conversion tooling rather than inference samples
- you need production-ready application code rather than demos

## Facets
- artifact type: learning-resource
- maturity: active
- function: machine-learning, developer-tools
- domain: machine-learning, deep-learning, developer-tools, tutorials
- platform: cross-platform, cpp, python, windows
- tags: onnx-runtime, inference, examples, sample-code, quantization, microsoft, javascript, mobile, linux, macos, android, ios

## Member repositories
- microsoft/onnxruntime-inference-examples (main) score 63

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:20.824716+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:42:26.954720+00:00, confidence not recorded.
  - readme: https://github.com/microsoft/onnxruntime-inference-examples (fetched 2026-08-28T04:05:20.824716+00:00, sha 066e4859f188)
- Data as of 2026-08-30T08:39:29.467469+00:00.
