profile
viewpoint

Ask questionstensorflow2.0 detected 'xla_gpu' , but 'gpu' expected

System information

  • Linux Ubuntu 16.04 :
  • TensorFlow installed from binary, tensorflow2.0-gpu-beta1:
  • Python version 3.6.4:
  • CUDA 9.1, cuDNN 7.0:
  • GPU: Titan Xp.

tensorflow detected 'xla_gpu' , but 'gpu' expected

train_model = keras.utils.multi_gpu_model(train_model, gpus=2) File "/usr/local/lib/python3.6/site-packages/tensorflow/python/keras/utils/multi_gpu_utils.py", line 182, in multi_gpu_model available_devices)) ValueError: To callmulti_gpu_modelwithgpus=2, we expect the following devices to be available: ['/cpu:0', '/gpu:0', '/gpu:1']. However this machine only has: ['/cpu:0', '/xla_gpu:0', '/xla_gpu:1', '/xla_cpu:0']. Try reducinggpus.

tensorflow/tensorflow

Answer questions ziyigogogo

seems that you are using a XLA compiled tf build. Not sure if it's a bug. Need some confirmation from the tf team members.

useful!

Related questions

ModuleNotFoundError: No module named 'tensorflow.contrib' hot 8
Error occurred when finalizing GeneratorDataset iterator hot 7
tensorflow-gpu CUPTI errors
Error loading tensorflow
ModuleNotFoundError: No module named 'tensorflow.contrib'
module 'tensorflow' has no attribute 'ConfigProto'
TF 2.0 'Tensor' object has no attribute 'numpy' while using .numpy() although eager execution enabled by default
When importing TensorFlow, error loading Hadoop
tf.keras.layers.Conv1DTranspose ?
[TF 2.0] tf.keras.optimizers.Adam hot 4
Lossy conversion from float32 to uint8. Range [0, 1]. Convert image to uint8 prior to saving to suppress this warning. hot 4
TF2.0 AutoGraph issue hot 4
Tf.Keras metrics issue hot 4
ModuleNotFoundError: No module named 'tensorflow.examples.tutorials' hot 4
AttributeError: module 'tensorflow.python.framework.op_def_registry' has no attribute 'register_op_list' hot 4
Github User Rank List