I am trying to deploy a Flask web app with tensorflow on an AWS server ( AMI ID: Deep Learning (ami-77e0da1d)), for an image classification app.

When I use tensorflow in the server, it works normally, but when I try to use it with the app, I get: 

> 
> No data received ERR\_EMPTY\_RESPONSE 
> 
> 
> 

In the end of the error.log file, I have:

> 
> F tensorflow/stream\_executor/cuda/cuda\_dnn.cc:204] could not find cudnnCreate in cudnn DSO; dlerror: /usr/local/lib/python2.7/dist-packages/tensorflow/python/\_pywrap\_tensorflow.so: undefined symbol: cudnnCreate
>  [Sat May 14 11:30:54.124034 2016] [core:notice] [pid 1332:tid 139695334930304] AH00051: child pid 2999 exit signal Aborted (6), possible coredump in /etc/apache2
> 
> 
> 

My CuDNN version: 4.0.7

I can provide more details if necessary