wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh bash Miniconda3-latest-Linux-x86_64.sh <> conda create --name directml python=3.6 conda activate directml pip install tensorflow-directml create TF_tester.py -------------------------- import tensorflow.compat.v1 as tf tf.enable_eager_execution(tf.ConfigProto(log_device_placement=True)) print(tf.add([1.0, 2.0], [3.0, 4.0])) --------------------------- PS C:\Users\niels> wsl (base) niels@SATURN:/mnt/c/Users/niels$ conda activate directml (directml) niels@SATURN:/mnt/c/Users/niels$ python tf_tester.py 2023-08-09 18:58:53.363977: I tensorflow/stream_executor/platform/default/dso_loader.cc:97] Successfully opened dynamic library libdirectml.d6f03b303ac3c4f2eeb8ca631688c9757b361310.so 2023-08-09 18:58:53.364028: I tensorflow/stream_executor/platform/default/dso_loader.cc:97] Successfully opened dynamic library libdxcore.so 2023-08-09 18:58:53.367912: I tensorflow/stream_executor/platform/default/dso_loader.cc:97] Successfully opened dynamic library libd3d12.so 2023-08-09 18:58:53.583771: I tensorflow/core/common_runtime/dml/dml_device_cache.cc:250] DirectML device enumeration: found 1 compatible adapters. 2023-08-09 18:58:53.584051: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA 2023-08-09 18:58:53.584554: I tensorflow/core/common_runtime/dml/dml_device_cache.cc:186] DirectML: creating device on adapter 0 (NVIDIA GeForce GTX 1080) 2023-08-09 18:58:53.685810: I tensorflow/core/common_runtime/eager/execute.cc:571] Executing op Add in device /job:localhost/replica:0/task:0/device:DML:0 tf.Tensor([4. 6.], shape=(2,), dtype=float32) Segmentation fault