Skip to content

Commit

Permalink
directmlでGPUが使えなかったことに対する対処 (#236)
Browse files Browse the repository at this point in the history
with_append_execution_provider_directmlを追加
  • Loading branch information
qwerty2501 authored Aug 17, 2022
1 parent 9ae34ce commit 3c08d3d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- published
jobs:
rust-lint:
runs-on: ubuntu-latest
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
Expand Down
2 changes: 1 addition & 1 deletion crates/voicevox_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ derive-getters = "0.2.0"
derive-new = "0.5.9"
libc = "0.2.131"
once_cell = "1.10.0"
onnxruntime = { git = "https://github.com/VOICEVOX/onnxruntime-rs.git", version = "0.0.30" }
onnxruntime = { git = "https://github.com/VOICEVOX/onnxruntime-rs.git", version = "0.1.0" }
serde = { version = "1.0.143", features = ["derive"] }
serde_json = "1.0.83"
thiserror = "1.0.32"
Expand Down
1 change: 1 addition & 0 deletions crates/voicevox_core/src/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ impl Status {
session_builder
.with_disable_mem_pattern()?
.with_execution_mode(onnxruntime::ExecutionMode::ORT_SEQUENTIAL)?
.with_append_execution_provider_directml(0)?
} else {
let options = CudaProviderOptions::default();
session_builder.with_append_execution_provider_cuda(options)?
Expand Down

0 comments on commit 3c08d3d

Please sign in to comment.