-
Notifications
You must be signed in to change notification settings - Fork 741
Merge sox effect and sox_io C++ implementation #779
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
Conversation
In pytorch#779, we plan to remove `frames_per_chunk` parameter from `save` function, but it will take some time before we can land pytorch#779, so we go ahead and remove the parameter first to reduce the conflict caused by interface change.
a481617 to
f72717d
Compare
Codecov Report
@@ Coverage Diff @@
## master #779 +/- ##
=======================================
Coverage 89.86% 89.86%
=======================================
Files 35 35
Lines 2713 2713
=======================================
Hits 2438 2438
Misses 275 275 Continue to review full report at Codecov.
|
5839e44 to
b5cd948
Compare
6f2e558 to
2b5463f
Compare
Can you elaborate? I believe this is the change we talked about where |
2b5463f to
141b569
Compare
This change gets rid of custom implementation for load/save and it uses sox effects chain implementation for them. |
vincentqb
left a comment
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.
Thanks for the clarification, LGTM!
|
thanks |
p.add_(-lr, p.grad) throws RuntimeError: a leaf Variable that requires grad is being used in an in-place operation, using p.data.add_(-lr, p.grad) fixes this issue.
This PR is built on top of #760 , and it merges
sox_iobackendload/savefunctions withsox_effectson C++ side. No BC breaking as it's C++ internal.The number of frames to process at a time (Addressed in #780 separatelyframes_per_chunkparameter ofsavefunction) can be adjusted viatorchaudio.utils.sox_utils.set_buffer_size, so removed from the function signature.