Compare commits

...

2 Commits

Author SHA1 Message Date
j1nx 5e277d5e24 Add multithread support to Whisper-tflite 2023-01-20 14:57:19 +01:00
j1nx edb8057f7f Bump SciPy even further 2023-01-20 13:01:39 +01:00
3 changed files with 27 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# Locally generated
sha256 26d28c468900e6d5fdb37d2812ab46db0ccd22c63baa095057871faa3a498bc9 scipy-1.9.1.tar.gz
sha256 c8b3cbc636a87a89b770c6afc999baa6bcbb01691b5ccbbc1b1791c7c0a07540 scipy-1.10.0.tar.gz
sha256 96599f8ec69a2cc609265eed13fc75090aacb28742260e55ce623788a33da19c LICENSE.txt
sha256 37e64a498894ac7c3b070023e3689e954a8ecf8a23b90968d09a455f1b4f7b35 scipy/linalg/src/lapack_deprecations/LICENSE
sha256 606209a000716c5f66e33e180ce08434b96ed17db4975ab9723c6b5fbcc89609 scipy/ndimage/LICENSE.txt

View File

@ -4,7 +4,7 @@
#
################################################################################
PYTHON_SCIPY_VERSION = 1.9.1
PYTHON_SCIPY_VERSION = 1.10.0
PYTHON_SCIPY_SOURCE = scipy-$(PYTHON_SCIPY_VERSION).tar.gz
PYTHON_SCIPY_SITE = https://github.com/scipy/scipy/releases/download/v$(PYTHON_SCIPY_VERSION)
PYTHON_SCIPY_LICENSE = \

View File

@ -0,0 +1,25 @@
From 624f7abc65cf1dee85d803c398b36a9b35106720 Mon Sep 17 00:00:00 2001
From: j1nx <p.steenbergen@j1nx.nl>
Date: Fri, 20 Jan 2023 14:22:23 +0100
Subject: [PATCH 1/1] Multithread support
---
tflite_minimal/minimal.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tflite_minimal/minimal.cc b/tflite_minimal/minimal.cc
index 82e9b11..e7d0187 100644
--- a/tflite_minimal/minimal.cc
+++ b/tflite_minimal/minimal.cc
@@ -186,6 +186,8 @@ int main(int argc, char* argv[]) {
tflite::InterpreterBuilder builder(*model, resolver);
std::unique_ptr<tflite::Interpreter> interpreter;
builder(&interpreter);
+ const auto processor_count = std:: thread ::hardware_concurrency();
+ interpreter->SetNumThreads(processor_count);
TFLITE_MINIMAL_CHECK(interpreter != nullptr);
// Allocate tensor buffers.
--
2.34.1