-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
piper: Apply patch to build with onnxruntime 1.15.1
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
pkgs/tools/audio/piper/fix-compilation-with-newer-onnxruntime.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/src/cpp/synthesize.hpp b/src/cpp/synthesize.hpp | ||
index ef61aef..4c7db7a 100644 | ||
--- a/synthesize.hpp | ||
+++ b/synthesize.hpp | ||
@@ -119,11 +119,11 @@ void synthesize(SynthesisConfig &synthesisConfig, ModelSession &session, | ||
|
||
// Clean up | ||
for (size_t i = 0; i < outputTensors.size(); i++) { | ||
- Ort::OrtRelease(outputTensors[i].release()); | ||
+ Ort::detail::OrtRelease(outputTensors[i].release()); | ||
} | ||
|
||
for (size_t i = 0; i < inputTensors.size(); i++) { | ||
- Ort::OrtRelease(inputTensors[i].release()); | ||
+ Ort::detail::OrtRelease(inputTensors[i].release()); | ||
} | ||
} | ||
} // namespace larynx |