philtabor / Deep-Q-Learning-Paper-To-Code

MIT License
342 stars 145 forks source link

Runtime error in cartpole_naive_dqn.py #1

Open vvrs opened 4 years ago

vvrs commented 4 years ago

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?

philtabor commented 4 years ago

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.