Share to: share facebook share twitter share wa share telegram print page

DirectML

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]

  • AMD GCN 第1世代 (Radeon HD 7000 シリーズ) 以降 (2012年)
  • Intel Haswell (第4世代Intel Core) HD Integrated Graphics 以降 (2013年)
  • NVIDIA Kepler マイクロアーキテクチャ (GeForce 600 シリーズ) 以降 (2012年)
  • Qualcomm Adreno 600 以降

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

対応ライブラリ

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

  • ONNX Runtime[6]
  • PyTorch。torch-directmlパッケージをインストールする。[7]
  • Web Neural Network APIを実装したWindows上のウェブブラウザ。これ自体もONNX Runtime Webから利用可能。[8]

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

  • TensorFlow。tensorflow-directml-pluginもしくはtensorflow-directmlパッケージをインストールする。[9][10][11]

出典

  1. ^ DirectML の概要” (2025, 02/10 エラー: 日付が正しく記入されていません。(説明). 2025年3月1日閲覧。
  2. ^ WSL での GPU アクセラレーション” (2024, 03/15 エラー: 日付が正しく記入されていません。(説明). 2025年3月1日閲覧。
  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.”. 2025年3月1日閲覧。
  4. ^ Pralle, Chad. “Introducing Neural Processor Unit (NPU) support in DirectML (developer preview) - DirectX Developer Blog”. DirectX Developer Blog. 2025年3月1日閲覧。
  5. ^ Blog, Windows Developer. “DirectML expands NPU support to Copilot+ PCs and WebNN”. Windows Developer Blog. 2025年3月1日閲覧。
  6. ^ Windows - DirectML”. onnxruntime. 2025年3月1日閲覧。
  7. ^ DirectML/PyTorch at master · microsoft/DirectML”. 2025年3月1日閲覧。
  8. ^ Web”. onnxruntime. 2025年3月1日閲覧。
  9. ^ TensorFlow 2 用 DirectML プラグイン” (2025, 02/10 エラー: 日付が正しく記入されていません。(説明). 2025年3月1日閲覧。
  10. ^ microsoft/tensorflow-directml-plugin: DirectML PluggableDevice plugin for TensorFlow 2”. 2025年3月1日閲覧。
  11. ^ microsoft/tensorflow-directml: Fork of TensorFlow accelerated by DirectML”. 2025年3月1日閲覧。

外部リンク

Prefix: a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9

Portal di Ensiklopedia Dunia

Kembali kehalaman sebelumnya