We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 674b349 commit 200bd40Copy full SHA for 200bd40
tools/extra/parse_log.sh
@@ -14,7 +14,12 @@ echo "Usage parse_log.sh /path/to/your.log"
14
exit
15
fi
16
LOG=`basename $1`
17
-grep -B 1 'Test ' $1 > aux.txt
+sed -n '/Iteration .* Testing net/,/Iteration *. loss/p' $1 > aux.txt
18
+sed -i '/Waiting for data/d' aux.txt
19
+sed -i '/prefetch queue empty/d' aux.txt
20
+sed -i '/Iteration .* loss/d' aux.txt
21
+sed -i '/Iteration .* lr/d' aux.txt
22
+sed -i '/Train net/d' aux.txt
23
grep 'Iteration ' aux.txt | sed 's/.*Iteration \([[:digit:]]*\).*/\1/g' > aux0.txt
24
grep 'Test net output #0' aux.txt | awk '{print $11}' > aux1.txt
25
grep 'Test net output #1' aux.txt | awk '{print $11}' > aux2.txt
0 commit comments