-
Notifications
You must be signed in to change notification settings - Fork 217
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
implement RmEpsilonPruneMax #40
Conversation
Will go back to this PR after compile |
Remapped |
Sorry, forgot to remove |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's good that you implemented this, but this implementation would be too slow. Please look at the extended comment in the header where I declared this function.
@danpovey implemented with traceback-based algorithm, please have a review. |
OK, later.
…On Mon, May 25, 2020 at 8:48 PM Haowen Qiu ***@***.***> wrote:
@danpovey <https://github.com/danpovey> implemented with traceback-based
algorithm, please have a review.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/danpovey/k2/pull/40#issuecomment-633555950>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZFLO7J3TVGZDEPP6ZXSLDRTJSKZANCNFSM4NAMG5DQ>
.
|
Looks good to me. |
Sorry I may have to look at this tomorrow.
…On Mon, May 25, 2020 at 10:54 PM Fangjun Kuang ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In k2/csrc/fsa_algo_test.cc
<https://github.com/danpovey/k2/pull/40#discussion_r429975892>:
> + delete log_wfsa_;
+ }
+
+ WfsaWithFbWeights *max_wfsa_;
+ WfsaWithFbWeights *log_wfsa_;
+ Fsa *fsa_;
+ int32_t num_states_;
+ float *arc_weights_;
+};
+
+TEST_F(RmEpsilonTest, RmEpsilonsPrunedMax) {
+ Fsa b;
+ std::vector<std::vector<int32_t>> arc_derivs_b;
+ RmEpsilonsPrunedMax(*max_wfsa_, 8, &b, &arc_derivs_b);
+
+ IsEpsilonFree(b);
EXPECT_TRUE(IsEpsilonFree(b));
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/danpovey/k2/pull/40#pullrequestreview-417761011>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZFLO2OH5GUHI6H3OGUY4TRTKBAZANCNFSM4NAMG5DQ>
.
|
Cool! Merging. |
Input
Output