Last active
September 23, 2018 20:15
-
-
Save tonyreina/9ce1196ad66d5d75ddca2a7cf662a661 to your computer and use it in GitHub Desktop.
Print benchmarks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Prints FPS from from the logs emitted from tf_cnn_bench_6nets scripts. | |
#Usage: ./print_fps_tf_cnn_bench_6nets.sh 96 | |
echo -e "\n Net BZ FPS \n" | |
num_cores=`grep -c ^processor /proc/cpuinfo` # Get number of cores | |
for network in googlenet inception3 resnet50 resnet152 vgg16 ; do | |
for bz in 1 32 64 96 128; do | |
fps=$(grep "total images/sec:" net_${network}_bz_${bz}_numcores_${num_cores}.log | cut -d ":" -f2 | xargs) | |
echo "$network $bz $fps" | |
done | |
echo -e "\n" | |
done | |
echo Benchmark started at: `cat start_benchmark.txt` | |
echo Benchmark finished at: `cat stop_benchmark.txt` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment