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

RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 1. Got 1 and 14 in dimension 0 at /pytorch/aten/src/THC/generic/THCTensorMath.cu:71 #3

Open
luckysunda opened this issue Feb 5, 2020 · 1 comment

Comments

@luckysunda
Copy link

In line 53, word_embedded, pretrain_embedded and lemma_embedded, these three are of different dimensions, so they clearly cannot be concatenated.

embeds = self.tanh(self.embeds2input(torch.cat((word_embedded, pretrain_embedded, lemma_embedded), 1))).view(len(sentence[0]),1,-1)
    

How to run the prediction, please help.

@LeonCrashCode
Copy link
Collaborator

The codes here is not updated, please refer to the codes on https://github.com/LeonCrashCode/TreeDRSparsing/tree/bs_sattn_drssup

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