DirectML(Direct Machine Learning)は、マイクロソフトが提供している、Microsoft Windows上でGPUもしくはNPUを用いてニューラルネットワーク(ディープラーニング)を実行するためのC++の低レベルAPI。Windows 10 バージョン 1903以降に標準搭載されている。[1]

学習結果の推論だけでなく、学習の用途にも利用可能である。ネイティブWindowsだけでなく、Windows上のWindows Subsystem for Linuxからも利用可能である。[2]

対応ハードウェア

GPUの場合は、2015年に発表されたMicrosoft DirectX 12に対応している必要がある。事実上、現在使われているほとんどのGPUが対応している。[3]

NPUは以下のものが対応している。

対応ライブラリ

直接DirectMLを呼び出すことも可能であるが、以下のライブラリが対応している。

以下のものは開発が止まっている。

出典

  1. ↑ “DirectML の概要” (2025, 02/10). March 1, 2025閲覧。
  2. ↑ “WSL での GPU アクセラレーション” (2024, 03/15). March 1, 2025閲覧。
  3. ↑ “microsoft/DirectML: DirectML is a high-performance, hardware-accelerated DirectX 12 library for machine learning. DirectML provides GPU acceleration for common machine learning tasks across a broad range of supported hardware and drivers, including all DirectX 12-capable GPUs from vendors such as AMD, Intel, NVIDIA, and Qualcomm.”. March 1, 2025閲覧。
  4. ↑ Pralle, Chad. “Introducing Neural Processor Unit (NPU) support in DirectML (developer preview) - DirectX Developer Blog”. DirectX Developer Blog. 1 March 2025閲覧。
  5. ↑ Blog, Windows Developer. “DirectML expands NPU support to Copilot+ PCs and WebNN”. Windows Developer Blog. 1 March 2025閲覧。
  6. ↑ “Windows - DirectML”. onnxruntime. 1 March 2025閲覧。
  7. ↑ “DirectML/PyTorch at master · microsoft/DirectML”. March 1, 2025閲覧。
  8. ↑ “Web”. onnxruntime. 1 March 2025閲覧。
  9. ↑ “TensorFlow 2 用 DirectML プラグイン” (2025, 02/10). March 1, 2025閲覧。
  10. ↑ “microsoft/tensorflow-directml-plugin: DirectML PluggableDevice plugin for TensorFlow 2”. March 1, 2025閲覧。
  11. ↑ “microsoft/tensorflow-directml: Fork of TensorFlow accelerated by DirectML”. March 1, 2025閲覧。

外部リンク

⌬ Phoenix Mesh CID: 未登録 IPFS未登録 📡 0ピア N=1 CRITICAL PQS D38