Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

About seq2seq-translation-batched.py RuntimeError #148

Open
xiangningOvo opened this issue Nov 23, 2020 · 1 comment
Open

About seq2seq-translation-batched.py RuntimeError #148

xiangningOvo opened this issue Nov 23, 2020 · 1 comment

Comments

@xiangningOvo
Copy link

there was error occured:

in score(self, hidden, encoder_output)
     35         elif self.method == 'general':
     36             energy = self.attn(encoder_output)
---> 37             energy = hidden.dot(energy)
     38             return energy
     39 

RuntimeError: 1D tensors expected, but got 2D and 2D tensors

I modify nothing.
Can anyone help me!?Thank you

@SANTOSHMAHER
Copy link

SANTOSHMAHER commented Nov 23, 2020 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants