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 dither binding in Pybind11 to ensure independence from high_freq in FeatureExtractorConfig #1739

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

jacklynblack
Copy link
Contributor

This PR fixes the incorrect binding of the dither attribute in the FeatureExtractorConfig Pybind11 bindings. Previously, dither was mistakenly bound to the high_freq member variable, causing unexpected behavior where changes to one attribute affected the other.

The fix updates the Pybind11 binding to correctly map dither to its own member variable, ensuring that dither and high_freq are independent properties in Python

Copy link
Collaborator

@csukuangfj csukuangfj left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution!

@csukuangfj csukuangfj merged commit b943341 into k2-fsa:master Jan 20, 2025
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