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 compilation issues when using KALDI_DOUBLEPRECISION=1 #470

Merged
merged 2 commits into from
Jan 28, 2016
Merged

Fix compilation issues when using KALDI_DOUBLEPRECISION=1 #470

merged 2 commits into from
Jan 28, 2016

Conversation

funous
Copy link
Contributor

@funous funous commented Jan 27, 2016

Fix some compilation issues by specifying templates instead of letting the compiler guess and replacing hardcoded floats in signal processing by BaseFloat typedef

When dealing with rnnlm, floats are used everywhere, no matter what the precision of the rest of Kaldi is (it was already like that in most of the rnnlm code, with a few exceptions)

@@ -3933,7 +3933,7 @@ void Convolutional1dComponent::Propagate(const ChunkInfo &in_info,
}

// apply all filters
AddMatMatBatched(1.0f, tgt_batch, patch_batch, kNoTrans, filter_params_batch,
AddMatMatBatched<BaseFloat>(1.0f, tgt_batch, patch_batch, kNoTrans, filter_params_batch,
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we're at it, could you please replace the 1.0f in these AddMatMatBatched calls with 1.0?
1.0f seems to have been an attempt to call the version of the template, but isn't needed and is confusing.

@funous
Copy link
Contributor Author

funous commented Jan 28, 2016

Ok, I'll do it.

@danpovey
Copy link
Contributor

Thanks! Merging.

danpovey added a commit that referenced this pull request Jan 28, 2016
Fix compilation issues when using KALDI_DOUBLEPRECISION=1
@danpovey danpovey merged commit 75a8334 into kaldi-asr:master Jan 28, 2016
@funous funous deleted the bugfix-doubleprecision branch January 29, 2016 10:50
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