1. Convert

The ONNX format enables you to leverage ONNX Runtime with DirectML, which provides cross-hardware capabilities.

To convert your model to the ONNX format, you can utilize ONNXMLTools or Olive .

3. Integrate

When your model is ready, it's time to bring hardware-accelerated inferencing to your app with ONNX Runtime and DirectML.

We built some samples to show how you can use DirectML and the ONNX Runtime in Python and C#:

  • Python
  • DirectML API

    Even though DirectML can be accessed via other frameworks such as the ONNX Runtime, DirectML can also be accessed directly by developers familiar with C++.

    It has a familiar (native C++, nano-COM) programming interface and workflow in the style of DirectX 12.

    We recommend that developers start by looking at our Introduction to DirectML and our DirectML overview .