Skip to content

Instantly share code, notes, and snippets.

View tonyreina's full-sized avatar

Tony Reina tonyreina

View GitHub Profile
@tonyreina
tonyreina / run_bench.sh
Last active September 23, 2018 20:09
TF CNN Benchmarking Scripts
#!/bin/bash
#sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches'
date > start_benchmark.txt
# Get number of sockets (set interthread to num sockets)
inter=`grep -i "physical id" /proc/cpuinfo | sort -u | wc -l`
# Get number of physical cores (set intra to num physical cores)
num_cores=`grep -c ^processor /proc/cpuinfo` # Get number of cores
for network in googlenet inception3 resnet50 resnet152 vgg16 ; do
for bz in 1; do