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

Fix nnet3 endpointing to correctly use frame subsampling factor (#1184) #1196

Merged
merged 2 commits into from
Nov 16, 2016

Conversation

alumae
Copy link
Contributor

@alumae alumae commented Nov 15, 2016

Should take care of issue #1184.

@@ -102,6 +102,7 @@ class DecodableNnet3SimpleOnline: public DecodableInterface {
/// Indices are one-based! This is for compatibility with OpenFst.
virtual int32 NumIndices() const { return trans_model_.NumTransitionIds(); }

virtual int32 FrameSubsamplingFactor() const { return opts_.frame_subsampling_factor; }
Copy link
Contributor

Choose a reason for hiding this comment

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

you can remove the 'virtual' here, since it isn't part of the interface.

Overall this is a little bit of a hack, but if I think of a more general way to do this we can do it later on.

@alumae
Copy link
Contributor Author

alumae commented Nov 16, 2016

Changed FrameSubsamplingFactor() to non-virtual.

I agree this PR is a bit of hack.

@danpovey
Copy link
Contributor

Thanks! Merging.

@danpovey danpovey merged commit f66e83e into kaldi-asr:master Nov 16, 2016
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