Deep-Q-Learning-Paper-To-Code icon indicating copy to clipboard operation
Deep-Q-Learning-Paper-To-Code copied to clipboard

Runtime error in cartpole_naive_dqn.py

Open vvrs opened this issue 6 years ago • 1 comments

While running cartpole_naive_dqn.py, I am getting an error,

actions = T.tensor(action).to(self.Q.device)
RuntimeError: Could not infer dtype of numpy.int64

I already have a conda environment setup with deep learning and gym modules installed. Do you think this is a problem with versions?

vvrs avatar Dec 01 '19 01:12 vvrs

Please let me know which versions of numpy and torch you are running. I am running into some versioning issues myself after updating and will be modifying the code here on github to be more forward compatible.

philtabor avatar Jan 23 '20 22:01 philtabor