summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Shelhamer <shelhamer@imaginarynumber.net>2015-09-25 16:23:32 (GMT)
committerEvan Shelhamer <shelhamer@imaginarynumber.net>2015-09-25 16:23:32 (GMT)
commitaa6900aa066281847eeacda3fc314f201907cc4a (patch)
tree26f174419b566c4e7194b542de53f8a007b24dd8
parent674b349522249094b5449f4bc1f90635dc625f4f (diff)
parent200bd40391bc1c072730ea4bd80a6fe42b7a3901 (diff)
downloadcaffeonacl-aa6900aa066281847eeacda3fc314f201907cc4a.zip
caffeonacl-aa6900aa066281847eeacda3fc314f201907cc4a.tar.gz
caffeonacl-aa6900aa066281847eeacda3fc314f201907cc4a.tar.bz2
Merge pull request #3118 from ducha-aiki/patch-1
Fix parse_log.sh against "prefetch queue empty" messages
-rwxr-xr-xtools/extra/parse_log.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/extra/parse_log.sh b/tools/extra/parse_log.sh
index 98ef0a0..9892c89 100755
--- a/tools/extra/parse_log.sh
+++ b/tools/extra/parse_log.sh
@@ -14,7 +14,12 @@ echo "Usage parse_log.sh /path/to/your.log"
exit
fi
LOG=`basename $1`
-grep -B 1 'Test ' $1 > aux.txt
+sed -n '/Iteration .* Testing net/,/Iteration *. loss/p' $1 > aux.txt
+sed -i '/Waiting for data/d' aux.txt
+sed -i '/prefetch queue empty/d' aux.txt
+sed -i '/Iteration .* loss/d' aux.txt
+sed -i '/Iteration .* lr/d' aux.txt
+sed -i '/Train net/d' aux.txt
grep 'Iteration ' aux.txt | sed 's/.*Iteration \([[:digit:]]*\).*/\1/g' > aux0.txt
grep 'Test net output #0' aux.txt | awk '{print $11}' > aux1.txt
grep 'Test net output #1' aux.txt | awk '{print $11}' > aux2.txt