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

Questions about _step_slice in line 285 of layers.py #1

Closed
jinfengfeng opened this issue Jun 29, 2016 · 2 comments
Closed

Questions about _step_slice in line 285 of layers.py #1

jinfengfeng opened this issue Jun 29, 2016 · 2 comments

Comments

@jinfengfeng
Copy link

Hi!

I have two quesitons:

  1. The _step_slice function have 15 arguments listed in its definition, while len(sequences)+len(outputs_info)+len(non_sequences) is 17. Why?
  2. step_slice returns h, ctx, alpha.T, why ctx_ and alpha.T will not disturb enc_ls, cc_ (arguments) ?
@orhanf
Copy link
Collaborator

orhanf commented Jun 29, 2016

Hi @jinfengfeng, you should not count the None elements in the outputs_info since they are not going to appear in the arguments list and in our case, None values are used as placeholders for ctx_ and alpha.T.

Please check the outputs_info section in scan documentation, here

@jinfengfeng
Copy link
Author

Thanks! @orhanf

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