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 unused file #1125

Merged
merged 1 commit into from
May 22, 2023
Merged

Remove unused file #1125

merged 1 commit into from
May 22, 2023

Conversation

pkufool
Copy link
Collaborator

@pkufool pkufool commented Dec 4, 2022

No description provided.

@pkufool pkufool added the ready Ready for review and trigger GitHub actions to run label Dec 4, 2022
@pkufool pkufool added ready Ready for review and trigger GitHub actions to run and removed ready Ready for review and trigger GitHub actions to run labels Dec 28, 2022
@csukuangfj csukuangfj merged commit 2fd1aa7 into k2-fsa:master May 22, 2023
(T_ + t - prune_num_frames) > 0 ? (T_ + t - prune_num_frames) : 0;
int32_t prune_t_end = T_ + t;
PruneTimeRange(prune_t_begin, prune_t_end);
if (t == b_fsas_->shape.MaxSize(1)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@pkufool I'm just curious about this change here, was it to fix some kind of bug?
I think the goal here with the periodic pruning was to reduce memory consumption, but it's not impossible that the implementation could have been buggy (or unnecessary in practice).

Copy link
Collaborator Author

@pkufool pkufool May 24, 2023

Choose a reason for hiding this comment

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

For streaming decoding, we will invoke this function every chunk, so I think we only need to prune once for each chunk, this fix is for efficiency.

[edit] This PR is not the fixes for the bug #1194 , I have not fixed it yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready Ready for review and trigger GitHub actions to run
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants