title: How to check if dlib is using GPU or not?
body: <p>My machine has Geforce 940mx GDDR5 GPU.</p>
  
  <p>I have installed all requirements to run GPU accelerated dlib (with GPU support):</p>
  
  <ol>
  <li><p>CUDA 9.0 toolkit with all 3 patches updates from <a href="https://developer.nvidia.com/cuda-90-download-archive?target_os=Windows&amp;target_arch=x86_64&amp;target_version=10&amp;target_type=exelocal" rel="noreferrer">https://developer.nvidia.com/cuda-90-download-archive?target_os=Windows&amp;target_arch=x86_64&amp;target_version=10&amp;target_type=exelocal</a></p></li>
  <li><p>cuDNN 7.1.4 </p></li>
  </ol>
  
  <p>Then I executed all those below command after cloning dlib/davisKing repository on Github for compliling dlib with GPU support
  :</p>
  
  <pre><code>$ git clone https://github.com/davisking/dlib.git
  $ cd dlib
  $ mkdir build
  $ cd build
  $ cmake .. -DDLIB_USE_CUDA=1 -DUSE_AVX_INSTRUCTIONS=1
  $ cmake --build .
  $ cd ..
  $ python setup.py install --yes USE_AVX_INSTRUCTIONS --yes DLIB_USE_CUDA
  </code></pre>
  
  <p>Now how could I possibly check/confirm if dlib(or other libraries depend on dlib like face_recognition of Adam Geitgey) is using GPU inside python shell/Anaconda(jupyter Notebook)?</p>