gym-2048 icon indicating copy to clipboard operation
gym-2048 copied to clipboard

How to run the training on GPU ?

Open ZuluPro opened this issue 3 years ago • 3 comments

Hi, When I use a tensorflow-gpu environment, despite CUDA, cuDNN and some operations involve the GPU, The training is executed on CPU.

Is there a way to force it in GPU ?

Regards

ZuluPro avatar Nov 06 '21 15:11 ZuluPro

Any news ?

ZuluPro avatar Nov 10 '21 23:11 ZuluPro

Which script are you using? train_keras_network.py? I haven’t tried this on GPU. Can you see where different operations are running with logging device placement (https://www.tensorflow.org/guide/gpu#logging_device_placement)?

rgal avatar Nov 13 '21 14:11 rgal

@rgal Yes I added the logging. The CPU is use from evalutate_episode, I guess in choose_action, the np.reshape starts the GPU avoidance.

ZuluPro avatar Nov 14 '21 00:11 ZuluPro