Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime error in cartpole_naive_dqn.py #1

Open
vvrs opened this issue Dec 1, 2019 · 1 comment
Open

Runtime error in cartpole_naive_dqn.py #1

vvrs opened this issue Dec 1, 2019 · 1 comment

Comments

@vvrs
Copy link

vvrs commented Dec 1, 2019

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants