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

Confused by lstm_cond_layer._step() function's variable names #2

Closed
happygds opened this issue Jan 8, 2016 · 0 comments
Closed

Confused by lstm_cond_layer._step() function's variable names #2

happygds opened this issue Jan 8, 2016 · 0 comments

Comments

@happygds
Copy link

happygds commented Jan 8, 2016

I was confused by lstm_cond_layer._step() function in file model_attention.py line 296:

   def _step(m_, x_, # sequences
             h_, c_, a_, ct_, # outputs_info
             pctx_, ctx_, Wd_att, U_att, c_att, W_sel, b_sel, U, Wc, # non_sequences

From the lambda function _step0 you defined and the codes in _step function, I see that ct_ means averaged context produced by attention mechanism and ctx_ means context. However, this function returned ctx_ at line 337 as follows:

        rval = [h, c, alpha, ctx_, pstate_, pctx_, i, f, o, preact, alpha_pre]+pctx_list
        return rval

I suggest you to make it clear. Thanks!

@happygds happygds closed this as completed Jan 8, 2016
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