title: How to release the occupied GPU memory when calling keras model by Apache mod_wsgi django?
body: <p>My server configuration is as follows: </p>
  
  <ol>
  <li><strong>apache 2.4.23.</strong></li>
  <li><strong>Mod_wsgi 4.5.9</strong></li>
  </ol>
  
  <p>By using the Django framework and apache server, we call the Keras deep learning model. <strong>And after the successful calling of the model, the model has been always running in the GPU memory, which causes the GPU memory can not be released except by shutting down the apache server</strong>.</p>
  
  <p>So, <strong>is there any way to control the release of GPU memory</strong> when calling a Keras model by Apache+Mod_wsgi+Django?</p>
  
  <p>Thanks!</p>
  
  <p><a href="https://i.stack.imgur.com/bI7bd.png" rel="noreferrer">Runtime memory footprint screenshots</a></p>