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

AttentionDecoder 输入的time_step必须要和encoder的time_step一样? #4

Open
Imorton-zd opened this issue Mar 22, 2018 · 1 comment

Comments

@Imorton-zd
Copy link

Imorton-zd commented Mar 22, 2018

您好,看了您的Git受益匪浅,有个小疑问:AttentionDecoder 输入的time_step必须要和encoder的time_step一样,那么AttentionDecoder 输出的time_step也就等于encoder的time_step,可是输入和输出的time_step数量一般情况下是不一样的啊?比如输入的是个问题,输出的是个答案,问题和答案的词数量一般都不一样。

@ningshixian
Copy link
Owner

我认为AttentionDecoder的输入和输出的time_step数量一般情况是一样的!
不然无法对输入进行加权和操作吧?
另外,你说问题和答案词向量不同,这个没有关系的,可以通过不同大小的权重矩阵W来合并

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