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

List backends dynamically based on availability #697

Merged
merged 2 commits into from Jun 8, 2020

Conversation

mthrok
Copy link
Collaborator

@mthrok mthrok commented Jun 4, 2020

No description provided.

@codecov
Copy link

codecov bot commented Jun 4, 2020

Codecov Report

Merging #697 into master will decrease coverage by 0.04%.
The diff coverage is 86.95%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #697      +/-   ##
==========================================
- Coverage   89.29%   89.24%   -0.05%     
==========================================
  Files          23       23              
  Lines        2335     2343       +8     
==========================================
+ Hits         2085     2091       +6     
- Misses        250      252       +2     
Impacted Files Coverage Δ
torchaudio/_backend.py 88.00% <86.95%> (-6.12%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f1ed19a...8362639. Read the comment docs.

@mthrok mthrok force-pushed the backend branch 9 times, most recently from 8daca0d to a18ed45 Compare June 5, 2020 21:36
@mthrok mthrok marked this pull request as ready for review June 5, 2020 22:09
@mthrok mthrok requested a review from vincentqb June 5, 2020 22:09
Copy link
Contributor

@vincentqb vincentqb left a comment

Choose a reason for hiding this comment

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

LGTM

_BACKEND = 'soundfile'
if _mod_utils.is_module_available('torchaudio._torchaudio'):
_BACKENDS['sox'] = _sox_backend
_BACKEND = 'sox'
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: here, "sox" would become the default since it's the last one selected

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, that's the intension but it was a bit unusual so I updated to use regular if 'sox' else if 'soundfile', which is easier to read.

@mthrok mthrok merged commit 2fd32dd into pytorch:master Jun 8, 2020
@mthrok mthrok deleted the backend branch June 8, 2020 20:56
@mthrok
Copy link
Collaborator Author

mthrok commented Jun 8, 2020

Thanks!

mpc001 pushed a commit to mpc001/audio that referenced this pull request Aug 4, 2023
* Update C++ DCGAN example for v1.4.0

* fix Reduction::Sum

* FeatureDropout -> Dropout2d
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.

None yet

2 participants