Trained Weights Source #3
DirectML is a low-level API designed for control and doesn't support loading ONNX models directly. If you want to use DirectML with ONNX models, you should try using Windows ML. When you create a GPU device with Windows ML, DirectML will be used under the hood to run your ONNX model. You can give a look at their samples to get started.
DirectML doesn't have the concept of a "model". For example, if you already have a trained ONNX model, you would need to "translate" it to DirectML at compile time by calling
Does that answer your question?