Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Allow option to only reset some states in _EncoderBase #2967

Merged
merged 5 commits into from
Jun 28, 2019

Conversation

rloganiv
Copy link
Contributor

This PR adds the ability for only some states to be reset when _EncoderBase.reset_states() is called, which can be useful when not all sequences in a batch terminate. Closes #2828.

@matt-gardner
Copy link
Contributor

@DeNeutoy, who do you think is the right person to review this? I'm happy to do it, but I'm not the most familiar with this part of the code.

Copy link
Contributor

@DeNeutoy DeNeutoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@brendan-ai2 brendan-ai2 merged commit e71618d into allenai:master Jun 28, 2019
reiyw pushed a commit to reiyw/allennlp that referenced this pull request Nov 12, 2019
This PR adds the ability for only some states to be reset when `_EncoderBase.reset_states()` is called, which can be useful when not all sequences in a batch terminate. Closes allenai#2828.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Splitting Long Sequences and Potential Modifications to Stateful Encoders
4 participants