I run drive.py program from Code Project | A Complete guide to self driving car
but when i start program i have error:
Not creating XLA devices, tf_xla_enable_xla_devices not set
Does anyone know how I can fix this problem? What should I download or reinstall?
I use:
Python 3.8.7
CUDA 11.0
tensorflow 2.4.1 On http://0.0.0.0:4567/ of course I see nothing
Not creating XLA devices, tf_xla_enable_xla_devices not set message is an information log which you can ignore. Sorry, something went wrong. The Not creating XLA devices, tf_xla_enable_xla_devices not set message is an information log which you can safely ignore. Thanks!
XLA:CPU is described as providing access to the CPU while the GPU is executing the code for modeling Tensorflow. The XLA functionality, when its environmental variable is set, allows the CPU to "help out" at specific, critical performance stages and thus to accelerate the processes one might usually think the GPU is needed for.
Alternatively, one can set the environment variable in Windows system settings: TF_XLA_FLAGS = --tf_xla_enable_xla_devices. According to this discussion, this helps use the GPU much more efficiently than simply ignoring the info. Usually this message should not interfere. to check that they are detected.
Not creating XLA devices, tf_xla_enable_xla_devices not set message is an information log which you can ignore. Sorry, something went wrong. The Not creating XLA devices, tf_xla_enable_xla_devices not set message is an information log which you can safely ignore.
Please add the following at the very beginning of your script:
os.environ['TF_XLA_FLAGS'] = '--tf_xla_enable_xla_devices'
Alternatively, one can set the environment variable in Windows system settings: TF_XLA_FLAGS = --tf_xla_enable_xla_devices
.
According to this discussion, this helps use the GPU much more efficiently than simply ignoring the info.
Usually this message should not interfere.
Please try
import tensorflow as tf
print("GPUs: ", len(tf.config.experimental.list_physical_devices('GPU')))
to check that they are detected.
If you need it, please check the release notes at github:
XLA:CPU and XLA:GPU devices are no longer registered by default. Use TF_XLA_FLAGS=--tf_xla_enable_xla_devices if you really need them, but this flag will eventually be removed in subsequent releases.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With