]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
main : dont print timings with --no-prints (#2108)
authorDaniel Ziegenberg <redacted>
Mon, 13 May 2024 12:00:19 +0000 (14:00 +0200)
committerGitHub <redacted>
Mon, 13 May 2024 12:00:19 +0000 (15:00 +0300)
Signed-off-by: Daniel Ziegenberg <redacted>
examples/main/main.cpp

index bb1931869d338fe541bfc9ddc4963938400b2db3..d11c1c3f81b0c76cd8000f2a817217f9db709613 100644 (file)
@@ -1233,7 +1233,9 @@ int main(int argc, char ** argv) {
         }
     }
 
-    whisper_print_timings(ctx);
+    if (!params.no_prints) {
+        whisper_print_timings(ctx);
+    }
     whisper_free(ctx);
 
     return 0;