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
Add sox_effects submodule and delegate sox_effects initialization #708
Conversation
Codecov Report
@@ Coverage Diff @@
## master #708 +/- ##
==========================================
- Coverage 89.29% 89.23% -0.06%
==========================================
Files 25 26 +1
Lines 2344 2350 +6
==========================================
+ Hits 2093 2097 +4
- Misses 251 253 +2
Continue to review full report at Codecov.
|
34f3380
to
c7eb0e9
Compare
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.
Can you detail what you are trying to do here?
return code | ||
return _SOX_SUCCESS_CODE | ||
|
||
|
||
@_mod_utils.requires_module("torchaudio._torchaudio") | ||
def shutdown_sox() -> int: | ||
def shutdown_sox_effects() -> int: |
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.
that's BC breaking, no? torchaudio.sox_effects.initialize_sox()
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.
I saw that torchaudio.shutdown_sox()
still works as you re-import correctly above. However, users could have been doing torchaudio.sox_effects.shutdown_sox()
which would now be torchaudio.sox_effects.shutdown_sox_effects()
, right?
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.
Yeah if the user adopts torchaudio.sox_effects.shutdown_sox()
which introduced only a couple of days ago.
I do not see that a problem but if you insist, I can simply add [BC braking]
tag to commit.
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.
Oh right, since it wasn't part of a release, we don't need to worry about this then.
@@ -11,7 +10,7 @@ | |||
) | |||
|
|||
if _mod_utils.is_module_available('torchaudio._torchaudio'): | |||
from . import _torchaudio | |||
from torchaudio import _torchaudio |
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.
nit: that's a separate issue :)
There are couple of aspects of this PR that overall improves the maintainability of the code base, based on "decoupling" and "separation of concerns". As you know, In addition to that, I found that Also moving functions from the original places are BC breaking itself, therefore, these functions are re-imported in In the next PR 9519310, I am gonna mark the |
Thanks for clarifying. I just wanted to make sure we are on the same page :) |
Great, let me know if you need something for approval. |
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.
LGTM
Thanks! |
Make jit tutorial consistently using 4 spaces as indent.
No description provided.