Repository navigation
Conversation
Codecov Report
@@ Coverage Diff @@
## master #46040 +/- ##
=========================================
Coverage ? 68.27%
=========================================
Files ? 410
Lines ? 53308
Branches ? 0
=========================================
Hits ? 36398
Misses ? 16910
Partials ? 0
Continue to review full report at Codecov.
|
|
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
left a comment
There was a problem hiding this comment.
@fmassa has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Summary: In `torchvision` we use [`torch.hub.tqdm`](https://github.com/pytorch/vision/blob/2cc20d7485458a6368e8995e3f79799589b632bd/torchvision/datasets/utils.py#L11) to display the dataset download. One of our methods uses [`tqdm().close()`](https://github.com/pytorch/vision/blob/2cc20d7485458a6368e8995e3f79799589b632bd/torchvision/datasets/utils.py#L188), which is [not included in the mock](https://github.com/pmeier/pytorch/blob/283ae1998cd6920b588907adfb88909afb522ae2/torch/hub.py#L22-L49). This PR adds a `close()` method to the mock. Cc fmassa Pull Request resolved: pytorch#46040 Reviewed By: mrshenli Differential Revision: D25619429 Pulled By: fmassa fbshipit-source-id: a137f2417d8a47923ccb1ec6b7d5298c1545245c
In
torchvisionwe usetorch.hub.tqdmto display the dataset download. One of our methods usestqdm().close(), which is not included in the mock. This PR adds aclose()method to the mock.Cc @fmassa