summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin <const@const.me>2023-01-23 20:04:06 +0100
committerKonstantin <const@const.me>2023-01-23 20:04:06 +0100
commitd3fe947eee55ea149c55c4f3a83ea285f9c0f5ba (patch)
tree1bc64e73637c250036a158b40d09db32a500f726
parent1aa646af6a1f694a365b36012d7214018ac661b1 (diff)
Performance improvement, no longer destroying temporary buffers in `encode()` method
-rw-r--r--Whisper/Whisper/WhisperContext.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/Whisper/Whisper/WhisperContext.cpp b/Whisper/Whisper/WhisperContext.cpp
index 6b541f4..a3a85b3 100644
--- a/Whisper/Whisper/WhisperContext.cpp
+++ b/Whisper/Whisper/WhisperContext.cpp
@@ -318,7 +318,6 @@ Tensor WhisperContext::encode( Whisper::iSpectrogram& spectrogram, const sEncode
check( melInput.create( spectrogram, encParams ) );
Tracing::tensor( "enc.input", melInput );
- arenas.outer.clear();
ArenaRaii arenaRaii{ *this, arenas.outer };
// Initial few steps