title: Could not create cudnn handle: CUDNN STATUS INTERNAL ERROR
body: <p>I'm trying to create machinelearing in python 3.
  but then i trying to compile my code i got this error in Cuda 10.0/cuDNN 7.5.0,
  can some one help me with this?</p>
  
  <p>RTX 2080</p>
  
  <p>I'm on:
  Keras (2.2.4)
  tf-nightly-gpu (1.14.1.dev20190510)</p>
  
  <blockquote>
    <p>Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR</p>
  </blockquote>
  
  <p>Code erorr:
  <code>tensorflow.python.framework.errors_impl.UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.</code></p>
  
  <p>Here is my code:</p>
  
  <pre><code>model = Sequential()
  model.add(Conv2D(32, (3, 3), activation='relu', input_shape=(50, 50, 1)))
  model.add(MaxPooling2D((2, 2)))
  model.add(Conv2D(64, (3, 3), activation='relu'))
  model.add(MaxPooling2D((2, 2)))
  model.add(Conv2D(64, (3, 3), activation='relu'))
  model.add(Flatten())
  model.add(Dense(1, activation='softmax'))
  
  model.summary()
  
  model.compile(optimizer='adam',
                loss='binary_crossentropy',
                metrics=['accuracy'])
  model.fit(x, y, epochs=1, batch_size=n_batch)
  </code></pre>
  
  <blockquote>
    <p>OOM when allocating tensor with shape[24946,32,48,48] and type float
    on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc</p>
  </blockquote>