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

what does "inner_packed_states_array" mean? #7

Open
HalFTeen opened this issue Jul 13, 2020 · 1 comment
Open

what does "inner_packed_states_array" mean? #7

HalFTeen opened this issue Jul 13, 2020 · 1 comment

Comments

@HalFTeen
Copy link

I have seen the explanation: "inner states need to be record, type: tuple". Are there any other role except for recording the innner states? Because I found it can still get the correct result without the parameter. looking forword to your reply. THX.

@godjealous
Copy link
Collaborator

The structure "inner_packed_states_array" is an interface for future expand.

Now, for Transformer model, this structure could be ignored because every token records full history labels. So, you could get correct results without the parameters.

However for other End-to-End models, for example LAS, it is useful to record some Intermediate state to avoid Repeated calculation

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