- Create virtual environment
virtualenv -p /usr/local/bin/python3 my_project
source my_project/bin/activate- Install tensorflow
- Install the following in the virtual environment:
virtualenv -p /usr/local/bin/python3 my_project
source my_project/bin/activate| MNIST | Plain | AVX+FMA+SSE | Intel MKL-DNN |
|---|---|---|---|
| Train (s) | 83.375 | 64.026 | 77.266 |
| Evaluation (s) | 3.50 | 3.47 | 6.107 |
import tensorflow as tf
nvidia-smi -q | grep Product
Product Name : GeForce GTX 1080 Ti
Product Brand : GeForce
Product Name : GeForce GTX 1080 Ti
Product Brand : GeForce
Product Name : GeForce GTX 1080 Ti
Product Brand : GeForce
Product Name : GeForce GTX 1080 Ti
nvcc --version
You can do it faster without any imports just by using magics:
%env CUDA_DEVICE_ORDER=PCI_BUS_ID
%env CUDA_VISIBLE_DEVICES=0
Notice that all env variable are strings, so no need to use ". You can verify that env-variable is set up by running: %env <name_of_var>. Or check all of them with %env.
Now you can tell Git not to guess, but rather to insist that you set user.name and user.email explicitly before it will let you commit:
git config --global user.useconfigonly truehttps://blog.github.com/2016-03-28-git-2-8-has-been-released/#annotations:eoCI6HhFEeiNcDNxG8M_Fg
Chooses gpu:0 or the first GPU in a GPU cluster.
CUDA_VISIBLE_DEVICES=0 python deeplab/model_test.pyMore info about this environment variable: https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#env-vars
Some functions return the self object. In this case, the object is an instance at an address. We want to ignore this output:
I found it easier to simply assign the unneeded return values to a variable:
>>> _ = do_something()
>>> check_something()
True