Harlinn.AI DirectML eXtensions (DML.X) is a C++ header-only helper library for the DirectML wrappers, intended to make it easier to compose DirectML operators into graphs that can be compiled into a CompiledOperator using the Device1::CompileGraph function.

DML.X wraps all the DirectML operator types, and provides intuitive operator overloads, simplifying the construction of the operator graphs.

The code within HAIDirectMLX.h started out as a rewrite of Microsofts DirectMLX.h, that has been simplified trough the use of the facilities provided by the DirectML wrappers.

By leveraging modern C++, almost every DML.X operator is now implemented using a small set of internal template functions.