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

Runtime error while generating latent features for own data #29

Open
NamanChuriwala opened this issue Oct 8, 2018 · 0 comments
Open

Comments

@NamanChuriwala
Copy link

NamanChuriwala commented Oct 8, 2018

***Traceback (most recent call last):
File "gen_latent_new.py", line 79, in
mol_vec = model.encode_latent_mean(batch)
File "/home/naman_churiwala_quantiphi_com/icml18-jtnn/jtnn/jtnn_vae.py", line 62, in encode_latent_mean
_, tree_vec, mol_vec = self.encode(mol_batch)
File "/home/naman_churiwala_quantiphi_com/icml18-jtnn/jtnn/jtnn_vae.py", line 51, in encode
tree_mess,tree_vec = self.jtnn(root_batch)
File "/home/naman_churiwala_quantiphi_com/anaconda3/envs/ChemGAN_1/lib/python2.7/site-packages/torch/nn/modules/module.py", line 477, in call
result = self.forward(input, kwargs)
File "/home/naman_churiwala_quantiphi_com/icml18-jtnn/jtnn/jtnn_enc.py", line 68, in forward
new_h = GRU(cur_x, cur_h_nei, self.W_z, self.W_r, self.U_r, self.W_h)
File "/home/naman_churiwala_quantiphi_com/icml18-jtnn/jtnn/nnutils.py", line 21, in GRU
z_input = torch.cat([x,sum_h], dim=1)

RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 1. Got 1 and 2 in dimension 0 at /opt/conda/conda-bld/pytorch_1532494458937/work/aten/src/TH/generic/THTensorMath.cpp:3616

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