240
笔下虽有千言,胸中实无一策

命令行 | TCMalloc for calculating the running time

Installing TCMalloc for use in experiments. This should slightly speed up runs.

sudo apt-get install libgoogle-perftools-dev
LD_PRELOAD=/usr/lib/libtcmalloc_minimal.so.4 /usr/bin/time -v python script.py

First part of this is for TCMalloc use when using tensorflow and the second part is for calculating the time it takes to run the script.
This two commands before every script should help when running experiments. 

posted @ 2017-03-21 01:25  CasperWin  阅读(185)  评论(0编辑  收藏  举报