title: While using TensorFlow 2.0.0: Error: device CUDA:0 not supported by XLA service while setting up XLA_GPU_JIT device number 0
body: <p>I'm trying to run a CuDNNLSTM layer on Tesla V100-SXM2 GPU, but error appears due to TensorFlow-gpu 2.0.0 installed (can not downgrade because is a shared server).</p>
  
  <p>ConfigProto options are deprecated at tf 2.0.0, so previous threads like <a href="https://stackoverflow.com/questions/57483567/tensorflow-device-cuda0-not-supported-by-xla-service-while-setting-up-xla-gpu">this</a> does not help.</p>
  
  <pre><code>os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
  os.environ["CUDA_VISIBLE_DEVICES"] = "2"  # Or 2, 3, etc. other than 0
  
  tf.config.gpu.set_per_process_memory_growth(True)
  tf.config.set_soft_device_placement(True)
  </code></pre>
  
  <p>If I use this code lines, another error shows up:</p>
  
  <blockquote>
    <p>module notfoundError: no module named 'tensorflow.contrib'</p>
  </blockquote>