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

Question about trainning of IND #7

Open
chuinixiongkou opened this issue Oct 28, 2023 · 0 comments
Open

Question about trainning of IND #7

chuinixiongkou opened this issue Oct 28, 2023 · 0 comments

Comments

@chuinixiongkou
Copy link

chuinixiongkou commented Oct 28, 2023

Hello author, thank you for the great work you are doing.I am training the ind dataset, when epoch==step1, the dimension of the tensor is wrong, I have no problem with the previous training generations when I debug, what is wrong?

File "train.py", line 144, in
loss, _, _, _, _, _, count = net(data, temp=temp, type=type, device=device)
File "/home//miniconda3/envs/py38/lib/python3.8/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(input, kwargs)
File "/home/
/exp/TDOR-main/model/full_model.py", line 71, in forward
waypts, waypt_lengths = self.net_p.sample_policy(pi, waypts_e,num_samples, temp=temp)
File "/home/
/exp/TDOR-main/model/policy_network.py", line 44, in sample_policy
state=waypts_e[:,:1].repeat(1,num_samples,1)
RuntimeError: Number of dimensions of repeat dims can not be smaller than number of dimensions of tensor

sorry for my question! I have fixed the problem.

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

1 participant