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
[BC Breaking] Reorganize C++ resources #630
Conversation
c9f754f
to
6219062
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.
LGTM, but travis is failing.
ImportError: cannot import name '_torchaudio' from 'torchaudio'
Ref: #636 |
Codecov Report
@@ Coverage Diff @@
## master #630 +/- ##
=======================================
Coverage 88.82% 88.82%
=======================================
Files 21 21
Lines 2220 2220
=======================================
Hits 1972 1972
Misses 248 248
Continue to review full report at Codecov.
|
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.
Find with me, but please mark as BC breaking.
Done so. Thanks! |
This PR - Changes the location of C++ codes from - from `torchaudio/torch_sox.cpp` to `torchaudio/csrc/sox.cpp` - from `torchaudio/torch_sox.h` to `torchaudio/csrc/sox.h` - Changes the location where the resulting library is placed - from `_torch_sox.so` (outside of `torchaudio` module) to `torchaudio/_torchaudio.so`.
Breakdown of #625
This PR
torchaudio/torch_sox.cpp
totorchaudio/csrc/sox.cpp
torchaudio/torch_sox.h
totorchaudio/csrc/sox.h
_torch_sox.so
(outside oftorchaudio
module)to
torchaudio/_torchaudio.so
.BTW: I noticed that
torch_sox.h
is not used by extension. We can remove it if we do not intend to make the extension library usable from external.