I am getting runtime error where the Tensorflow library is unable to initialize Cuda with versions higher than 2.0. Here are the software configs:
Ubuntu 16.04
Cuda: 10.1
Driver: 418.87.01
Cuddn: 7.5.4
Tensorflow: 2.2 (tried with 2.0)
Link to code: test.py · GitHub
Link to output: output.log · GitHub
I have tried using the memory growth approaches described here - https://github.com/tensorflow/tensorflow/issues/24828
Also the code works fine in Tensorflow Version 1.8. Not sure whats going on.