Open vnnw opened 6 years ago
Each sentence has a different dimension, which leads to this error(in LongTensor). I don't know how to solve it too
Just found a bug from data preprocessing file and fixed it. => https://github.com/ctr4si/A-Hierarchical-Latent-Structure-for-Variational-Conversation-Modeling/commit/e0d70c5b19ec724dd404ca3c94335417a4722068 Please check if it works now.
咋个搞吗
咋个搞吗
作者不是修复了吗
I cloned the repo to run the train.py on dataset ubuntu, both commands gave me similar errors as below
Traceback (most recent call last): File "train.py", line 53, in
solver.train()
File "/home/user/ML/A-Hierarchical-Latent-Structure-for-Variational-Conversation-Modeling-master/model/utils/time_track.py", line 18, in timed
result = method(*args, **kwargs)
File "/home/user/ML/A-Hierarchical-Latent-Structure-for-Variational-Conversation-Modeling-master/model/solver.py", line 466, in train
sentences = to_var(torch.LongTensor(sentences))
ValueError: expected sequence of length 11 at dim 1 (got 18)