Closed PawBlo closed 1 month ago
Hmm, seems like it's trying to use a GPU on a machine that doesn't have one (or is not setup properly). I see no GPU-specific code in the Python AlphaZero, and AFAIK it should work on CPU.
Did you install a GPU version of Tensorflow?
Are you able to create very simple graphs in your TF and run them without that error, e.g. does the following work for you?
import tensorflow.compat.v1 as tf
with tf.Session() as sess:
my_tensor = tf.constant([[1.0, 2.0], [3.0, 4.0]])
my_variable = tf.Variable(my_tensor)
bool_variable = tf.Variable([False, False, False, True])
complex_variable = tf.Variable([5 + 4j, 6 + 1j])
sess.run(tf.global_variables_initializer())
Also, did you add a Cuda/GPU-specific code to your local files? (such as e.g. with tf.device("/GPU:0"):
)
Closing due to inactivity, please re-open if you want to follow-up.
When I try to run
python tic_tac_toe_alpha_zero.py
I get this error:My env: open_spiel - master Ubuntu 22.04.4 LTS GNU ld (GNU Binutils for Ubuntu) 2.38 Python 3.10.12 Ubuntu clang version 14.0.0-1ubuntu1.1