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

Bug in AttentionDecoderCell ? ? #248

Open
jjwangnlp opened this issue May 11, 2018 · 0 comments
Open

Bug in AttentionDecoderCell ? ? #248

jjwangnlp opened this issue May 11, 2018 · 0 comments

Comments

@jjwangnlp
Copy link

jjwangnlp commented May 11, 2018

Dear authors, I have three questions as follows:

Firstly,

_xC = Lambda(lambda x: K.reshape(x, (-1, input_dim + hidden_dim)), output_shape=(input_dim + hidden_dim,))(_xC)

noted: output_shape=(input_dim + hidden_dim,) should it be ->-> output_shape=(input_length, input_dim + hidden_dim)???

Additionally, the same issue with #219 ,

instead of this:

C = Lambda(lambda x: K.repeat(x, input_length), output_shape=(input_length, input_dim))(c_tm1)

shouldn't it be this (input_dim -> hidden_dim):

C = Lambda(lambda x: K.repeat(x, input_length), output_shape=(input_length, hidden_dim))(c_tm1)

Because c_tm1 has dimensionality of hidden_dim

Finally,

alpha = W3(_xC)

line 89: alpha = W3(_xC) Here, did "Dense" play the same role as "TimedistributedDense" in keras? ?

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