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

Apply module availability guard to soundfile backend #696

Merged
merged 1 commit into from Jun 5, 2020

Conversation

mthrok
Copy link
Collaborator

@mthrok mthrok commented Jun 4, 2020

No description provided.

@mthrok mthrok force-pushed the module-soundfile branch 2 times, most recently from 4940d54 to 645412c Compare June 5, 2020 04:03
@mthrok mthrok changed the title Add proper modularization to soundfile backend Apply module availability guard to soundfile backend Jun 5, 2020
@codecov
Copy link

codecov bot commented Jun 5, 2020

Codecov Report

Merging #696 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #696   +/-   ##
=======================================
  Coverage   89.28%   89.29%           
=======================================
  Files          23       23           
  Lines        2333     2335    +2     
=======================================
+ Hits         2083     2085    +2     
  Misses        250      250           
Impacted Files Coverage Δ
torchaudio/_soundfile_backend.py 97.01% <100.00%> (+0.09%) ⬆️

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 4d52106...0c6e29c. Read the comment docs.

@mthrok mthrok force-pushed the module-soundfile branch 5 times, most recently from 4f0eb28 to 28877e7 Compare June 5, 2020 21:16
@mthrok mthrok marked this pull request as ready for review June 5, 2020 21:48
@mthrok mthrok requested a review from vincentqb June 5, 2020 21:48
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

from torchaudio._internal import misc_ops as _misc_ops
from torchaudio._internal import (
module_utils as _mod_utils,
misc_ops as _misc_ops,
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: this was like this before, but this is not used in the file at all?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

both of them are used. otherwise flake8 job would fail.

_misc_ops.check_input(src) is used in save function.

Copy link
Contributor

Choose a reason for hiding this comment

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

good point :)

@mthrok mthrok merged commit f1ed19a into pytorch:master Jun 5, 2020
@mthrok mthrok deleted the module-soundfile branch June 5, 2020 21:52
@mthrok
Copy link
Collaborator Author

mthrok commented Jun 5, 2020

Thanks!

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