From 19705527a0b24236af12e279f4e184bac174ba68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Tue, 13 Feb 2024 15:44:42 +0100 Subject: [PATCH] Cleanup --- deeptagger/bench.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/deeptagger/bench.sh b/deeptagger/bench.sh index 6b62791..d512ff0 100755 --- a/deeptagger/bench.sh +++ b/deeptagger/bench.sh @@ -28,11 +28,9 @@ run() { for model in models/*.model do name=$(sed -n 's/^name=//p' "$model") - run "" 1 "$model" "$@" - run "" 4 "$model" "$@" - run "" 16 "$model" "$@" - - run --cpu 1 "$model" "$@" - run --cpu 4 "$model" "$@" - run --cpu 16 "$model" "$@" + for batch in 1 4 16 + do + run "" $batch "$model" "$@" + run --cpu $batch "$model" "$@" + done done