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

Minor fixes for RNN-T decoding. #938

Merged
merged 2 commits into from
Mar 19, 2022

Conversation

csukuangfj
Copy link
Collaborator

No description provided.

@csukuangfj csukuangfj added the ready Ready for review and trigger GitHub actions to run label Mar 18, 2022
@@ -48,7 +48,7 @@ inline bool Leq(T a1, T a2, T a3, T b1, T b2, T b3) {
*/
template <typename T>
static void RadixPass(const T* a, T* b, const T* r, T n, T K) {
std::vector<T> c(K + 1, 0); // counter array
std::vector<T> c(K + 1, 0); // counter array
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need a 0 here? Your comment on line 72 said "entries are set to zero by default".

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I just added 0 to other usages of vector to make the fact explicit that entries default to be zero intialized.

@pkufool
Copy link
Collaborator

pkufool commented Mar 18, 2022

Thanks! Sorry, I should have checked them more carefully.

@csukuangfj csukuangfj merged commit 10b9423 into k2-fsa:master Mar 19, 2022
@csukuangfj csukuangfj deleted the minor-fix-for-rnn-decoding branch March 19, 2022 01:30
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.

2 participants