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

Remove get_max_seq_index #47

Merged
merged 1 commit into from
Nov 24, 2023
Merged

Remove get_max_seq_index #47

merged 1 commit into from
Nov 24, 2023

Conversation

RunDevelopment
Copy link
Member

This migrates the last architecture to the much more easy-to-use get_seq_len and removes the now unused get_max_seq_index.

I did this because get_seq_len has much better semantics than get_max_seq_index. E.g. get_seq_len can correctly handle sequences with elements that are not saved in the state dict, while get_max_seq_index cannot. get_seq_len also doesn't require a key pattern, which makes it independent of the items of the sequence.

@joeyballentine joeyballentine merged commit 0a40e81 into main Nov 24, 2023
7 checks passed
@joeyballentine joeyballentine deleted the rm-get_max_seq_index branch November 24, 2023 18:56
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

Successfully merging this pull request may close these issues.

2 participants