MCPcopy Index your code
hub / github.com/microsoft/onnxruntime

github.com/microsoft/onnxruntime @v1.27.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.27.0 ↗ · + Follow
56,178 symbols 210,858 edges 6,864 files 9,260 documented · 16% updated todayv1.27.0 · 2026-06-19★ 21,038802 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

ONNX Runtime is a cross-platform inference and training machine-learning accelerator.

ONNX Runtime inference can enable faster customer experiences and lower costs, supporting models from deep learning frameworks such as PyTorch and TensorFlow/Keras as well as classical machine learning libraries such as scikit-learn, LightGBM, XGBoost, etc. ONNX Runtime is compatible with different hardware, drivers, and operating systems, and provides optimal performance by leveraging hardware accelerators where applicable alongside graph optimizations and transforms. Learn more →

ONNX Runtime training can accelerate the model training time on multi-node NVIDIA GPUs for transformer models with a one-line addition for existing PyTorch training scripts. Learn more →

Get Started & Resources

Releases

The current release and past releases can be found here: https://github.com/microsoft/onnxruntime/releases.

For details on the upcoming release, including release dates, announcements, features, and guidance on submitting feature requests, please visit the release roadmap: https://onnxruntime.ai/roadmap.

Data/Telemetry

Windows distributions of this project may collect usage data and send it to Microsoft to help improve our products and services. See the privacy statement for more details.

Contributions and Feedback

We welcome contributions! Please see the contribution guidelines.

For feature requests or bug reports, please file a GitHub Issue.

For general discussion or questions, please use GitHub Discussions.

Code of Conduct

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.

License

This project is licensed under the MIT License.

Extension points exported contracts — how you extend this code

OrtProviderSupplier (Interface)
Functional interface mirroring a Java supplier, but can throw OrtException. [9 implementers]
java/src/main/java/ai/onnxruntime/OrtProviderOptions.java
InferenceSessionFactory (Interface)
(no doc) [9 implementers]
js/common/lib/inference-session.ts
LoggerProvider (Interface)
(no doc) [7 implementers]
js/web/lib/onnxjs/instrument.ts
ModelUrl (Interface)
(no doc) [18 implementers]
rust/onnxruntime/src/download.rs
OnnxPrebuiltArchive (Interface)
(no doc) [4 implementers]
rust/onnxruntime-sys/build.rs
IAttributeProto (Interface)
Properties of an AttributeProto. [1 implementers]
js/node/test/ort-schema/protobuf/onnx.d.ts
IOrtValueOwner (Interface)
Provides access from the underlying object that owns disposable OrtValue The returned value does not own the a
csharp/src/Microsoft.ML.OnnxRuntime/OrtValueTensor.shared.cs
InferenceSessionImpl (Interface)
(no doc) [1 implementers]
js/react_native/lib/api.ts

Core symbols most depended-on inside this repo

size
called by 6235
onnxruntime/core/optimizer/initializer.h
get
called by 4703
js/web/lib/onnxjs/backends/webgl/types.ts
end
called by 4435
js/web/lib/onnxjs/instrument.ts
size
called by 3236
onnxruntime/core/providers/cuda/nn/conv.h
Name
called by 2265
onnxruntime/core/providers/dnnl/subgraph/dnnl_subgraph.cc
print
called by 2199
js/web/test/e2e/type/testcases/module-resolution/index.ts
IsOK
called by 1913
include/onnxruntime/core/common/status.h
Input<Tensor>
called by 1722
onnxruntime/core/providers/shared_library/provider_wrappedtypes.h

Shape

Method 29,138
Function 16,323
Class 9,621
Enum 674
Interface 374
Route 48

Languages

C++65%
Python19%
TypeScript6%
Java5%
C#4%
C1%

Modules by API surface

java/src/test/java/ai/onnxruntime/OnnxMl.java2,179 symbols
onnxruntime/core/session/provider_bridge_ort.cc699 symbols
onnxruntime/core/providers/shared_library/provider_wrappedtypes.h541 symbols
orttraining/orttraining/test/python/orttraining_test_ortmodule_api.py519 symbols
onnxruntime/core/flatbuffers/schema/ort.fbs.h420 symbols
onnxruntime/core/providers/dml/DmlExecutionProvider/src/External/DirectMLHelpers/ApiTraits.h387 symbols
onnxruntime/core/providers/dml/DmlExecutionProvider/src/External/D3DX12/d3dx12.h349 symbols
include/onnxruntime/core/session/onnxruntime_cxx_inline.h340 symbols
csharp/test/Microsoft.ML.OnnxRuntime.Tests.Common/Tensors/TensorArithmetic.cs310 symbols
csharp/tools/Microsoft.ML.OnnxRuntime.PerfTool/OnnxMl.cs279 symbols
csharp/test/Microsoft.ML.OnnxRuntime.Tests.Common/OnnxMl.cs279 symbols
onnxruntime/core/providers/dml/DmlExecutionProvider/src/External/DirectMLHelpers/DirectMLX.h264 symbols

For agents

$ claude mcp add onnxruntime \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page