Skip to content

add close() method to tqdm mock - #46040

Closed
pmeier wants to merge 1 commit into
pytorch:masterfrom
pmeier:tqdm-mock-close
Closed

pmeier wants to merge 1 commit into
pytorch:masterfrom
pmeier:tqdm-mock-close

Conversation

@pmeier

@pmeier pmeier commented Oct 8, 2020

Copy link
Copy Markdown
Collaborator

In torchvision we use torch.hub.tqdm to display the dataset download. One of our methods uses tqdm().close(), which is not included in the mock. This PR adds a close() method to the mock.

Cc @fmassa

@fmassa fmassa left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@codecov

codecov Bot commented Oct 8, 2020

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (master@283ae19). Click here to learn what that means.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #46040   +/-   ##
=========================================
  Coverage          ?   68.27%           
=========================================
  Files             ?      410           
  Lines             ?    53308           
  Branches          ?        0           
=========================================
  Hits              ?    36398           
  Misses            ?    16910           
  Partials          ?        0           
Impacted Files Coverage Δ
torch/hub.py 70.65% <0.00%> (ø)

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 283ae19...3237128. Read the comment docs.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

Hi @pmeier!

Thank you for your pull request. We require contributors to sign our Contributor License Agreement, and yours needs attention.

You currently have a record in our system, but we do not have a signature on file.

In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@facebook-github-bot facebook-github-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@fmassa has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@fmassa merged this pull request in a84b93a.

@pmeier
pmeier deleted the tqdm-mock-close branch December 22, 2020 07:47
hwangdeyu pushed a commit to hwangdeyu/pytorch that referenced this pull request Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants