title: EXE made from Python file which uses Tensorflow-GPU does not use GPU when deployed
body: <p>I have a python file which uses tensorflow GPU in it. It uses GPU when i run the file from console using <code>python MyFile.py</code>.</p>
  
  <p>However, when i convert it into <code>exe</code> using <code>pyinstaller</code>, it converts and runs successfully, But it does not use GPU anymore when i run the exe. This happens on a system which was not used for developing <code>MyFile.py</code>. Checking on the same system which was used in development, it uses just 40-50% GPU, which was 90% if i run the python script.</p>
  
  <p>My application even has a small UI made using tkinter. </p>
  
  <p>Though application runs fine on <strong>CPU</strong>, It is incredibly slow. (I am not using --one-file flag in pyinstaller.) Although having <strong>GPU</strong>, The application is not using it.</p>
  
  <p>My questions are:</p>
  
  <ul>
  <li><p>How do I overcome this issue? Do I need to install any CUDA or CuDnn toolkits in my Destination computer?</p></li>
  <li><p>(Once the main question is solved) Can i use 1050ti in development and 2080ti in destination computer, if the CuDnn and CUDA versions are the same?</p></li>
  </ul>
  
  <p>Tensorflow Version : 1.14.0  (I know 2.x is out there, but this works perfectly fine for me.)</p>
  
  <p>GPU : GeForce GTX 1050 ti ( In development as well as deployment.)</p>
  
  <p>CUDA Toolkit : 10.0</p>
  
  <p>CuDnn : v7.6.2 for cuda 10.0</p>
  
  <p>pyinstaller version : 3.5</p>
  
  <p>Python version : 3.6.5</p>