DirectML Flow#

Prerequisites#

You can ensure GPU driver and DirectX version from Windows Task Manager -> Performance -> GPU

Running models on Ryzen AI GPU#

Running models on the Ryzen AI GPU is accomplished in two simple steps:

Model Conversion and Optimization: After the model is trained, Microsoft Olive Optimizer can be used to convert the model to ONNX and optimize it for optimal target execution.

For additional information, refer to the Microsoft Olive Documentation

Deployment: Once the model is in the ONNX format, the ONNX Runtime DirectML EP (DmlExecutionProvider) is used to run the model on the AMD Ryzen AI GPU.

For additional information, refer to the ONNX Runtime documentation for the DirectML Execution Provider

Examples#

Additional Resources#