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

Does not work under torch 1.0.1 version #7

Open
hyeseonko opened this issue Oct 21, 2019 · 1 comment
Open

Does not work under torch 1.0.1 version #7

hyeseonko opened this issue Oct 21, 2019 · 1 comment

Comments

@hyeseonko
Copy link

Hi,

When I try to run trainer.py with the task = 'vrp', the error message as below comes up. is it a version issue? (device= 'cpu')

Traceback (most recent call last):
File "D:/LG_RL/pytorch-drl4vrp-master/trainer.py", line 390, in
train_vrp(args)
File "D:/LG_RL/pytorch-drl4vrp-master/trainer.py", line 348, in train_vrp
train(actor, critic, **kwargs)
File "D:/LG_RL/pytorch-drl4vrp-master/trainer.py", line 164, in train
tour_indices, tour_logp = actor(static, dynamic, x0)
File "C:\Users\hsko0\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 489, in call
result = self.forward(*input, **kwargs)
File "D:\LG_RL\pytorch-drl4vrp-master\model.py", line 224, in forward
dynamic = self.update_fn(dynamic, ptr.data)
File "D:\LG_RL\pytorch-drl4vrp-master\tasks\vrp.py", line 135, in update_dynamic
return torch.Tensor(tensor.data, device=dynamic.device)
TypeError: new(): data must be a sequence (got Tensor)

Process finished with exit code 1

Best,
Hyeseon

@mengting456
Copy link

Hello, I also have this problem . Can you solve it?How is this problem solved?

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