-
Notifications
You must be signed in to change notification settings - Fork 47
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 when running toy example #4
Comments
I dont encounter such problem. |
Excuse me,I encounter the same problem when I use the seq_hotel dataset. Have you solved this problem, please? |
@Dear-zhangliyuan |
Yes, it is really work now. You are so great! ! Thanks very much!! |
hello javad, |
Traceback (most recent call last):
File "train.py", line 614, in
test(128, write_to_file=wr_dir, just_one=True)
File "train.py", line 533, in test
pred_hat_4d = predict(obsv, noise, n_next)
File "train.py", line 374, in predict
new_v = decoder(encoder.lstm_h[0].view(bs, -1), weighted_features, noise).view(bs, 2)
File "/home/yuanfu/workspace/socialways/env/lib/python3.5/site-packages/torch/nn/modules/module.py", line 491, in call
result = self.forward(*input, **kwargs)
File "train.py", line 290, in forward
inp = torch.cat([h, s, z], dim=1)
RuntimeError: invalid argument 0: Tensors must have same number of dimensions: got 2 and 1 at /pytorch/aten/src/THC/generic/THCTensorMath.cu:102
The text was updated successfully, but these errors were encountered: