From 669625a9ce0a81feb6ab4cc8f71522d603a67ab9 Mon Sep 17 00:00:00 2001 From: Ryo Yamashita Date: Sun, 4 Aug 2024 19:44:53 +0900 Subject: [PATCH] =?UTF-8?q?`load-onnxruntime`=E3=81=A7CUDA=E3=81=A8DirectM?= =?UTF-8?q?L=E3=81=8C=E4=BD=BF=E3=81=88=E3=82=8B=E3=81=93=E3=81=A8?= =?UTF-8?q?=E3=81=AB=E8=A8=80=E5=8F=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/voicevox_core/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/voicevox_core/src/lib.rs b/crates/voicevox_core/src/lib.rs index f0c6e2847..fedf538cf 100644 --- a/crates/voicevox_core/src/lib.rs +++ b/crates/voicevox_core/src/lib.rs @@ -6,7 +6,8 @@ //! ません。両方の有効化はコンパイルエラーとなります。[`Onnxruntime`]の初期化方法はこれらの //! フィーチャによって決まります。 //! -//! - **`load-onnxruntime`**: ONNX Runtimeを`dlopen`/`LoadLibraryExW`で開きます。 +//! - **`load-onnxruntime`**: ONNX Runtimeを`dlopen`/`LoadLibraryExW`で +//! 開きます。[CUDA]と[DirectML]が利用できます。 //! - **`link-onnxruntime`**: ONNX Runtimeをロード時動的リンクします。iOSのような`dlopen`の利用が //! 困難な環境でのみこちらを利用するべきです。_Note_: //! [動的リンク対象のライブラリ名]は`onnxruntime`で固定です。変更 @@ -14,6 +15,8 @@ //! ことはできません。 //! //! [Cargoフィーチャ]: https://doc.rust-lang.org/stable/cargo/reference/features.html +//! [CUDA]: https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html +//! [DirectML]: https://onnxruntime.ai/docs/execution-providers/DirectML-ExecutionProvider.html //! [動的リンク対象のライブラリ名]: //! https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib //! [`Onnxruntime`]: blocking::Onnxruntime