-
Notifications
You must be signed in to change notification settings - Fork 283
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
TypeError: stack(): argument 'tensors' (position 1) must be tuple of Tensors, not collections.deque #17
Comments
For starters, which version of Python are you using (Python 3 should be fine) and what version of PyTorch (v0.3.0 or v0.3.1 should be fine)? |
Hi Kaixhin, Thanks for your help. |
Not really sure what the problem is. Can you replace line 53 in |
With "list(self.state_buffer)", it does work. What's more, another exception occurs: Traceback (most recent call last): |
...... |
That's a different problem, so could you open a separate issue for that (so I can track this specific problem separately)? Before I close this issue I think there may be a bigger problem you have with PyTorch. Try running the following code, and if you get an error then you should post it as a PyTorch issue. from collections import deque
import torch
x = deque([torch.ones(3), torch.ones(3)])
torch.stack(x) |
Thanks. I will post it as a PyTorch issue. |
Traceback (most recent call last):
File "main.py", line 81, in
state, done = env.reset(), False
File "C:\Users\simon\Desktop\DQN\RL-AlphaGO\Rainbow-master\env.py", line 53, in reset
return torch.stack(self.state_buffer, 0)
TypeError: stack(): argument 'tensors' (position 1) must be tuple of Tensors, not collections.deque
Could somebody give a hand?
The text was updated successfully, but these errors were encountered: