title: Free Tensorflow GPU 2.x memory python between executions n windows 10
body: <p>How can I close/free/kill TensorFlow GPU 2.1 memory usage on windows 10 using python code?</p>
  <p>My code executes the following predictions</p>
  <pre><code>model.predict(video_1)
  
  model.predict(video_2)
  
  ...
  
  model.predict(video_155)
  </code></pre>
  <p>I would like to kill/free the GPU between each <code>model.predict</code> without having to physically close the python interpreter to free memory. How can one do that?</p>
  <p>I want to free the memory that causes the following</p>
  <pre><code>2020-08-13 17:11:34.563606: W tensorflow/core/common_runtime/bfc_allocator.cc:243] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.30GiB with freed_by_count=0. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available.
  </code></pre>