Skip to content

Conversation

@adriancampos
Copy link
Contributor

Values from random.random() are always in the range [0.0, 1.0), so the statement random.random() > 5 will never be true.

Values from random.random() are always in the range [0.0, 1.0), so the statement `random.random() > 5` will never be true.
@codecov-io
Copy link

codecov-io commented Jun 23, 2019

Codecov Report

Merging #1041 into master will decrease coverage by 0.05%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1041      +/-   ##
=========================================
- Coverage   63.46%   63.4%   -0.06%     
=========================================
  Files          65      65              
  Lines        5154    5154              
  Branches      772     772              
=========================================
- Hits         3271    3268       -3     
- Misses       1661    1663       +2     
- Partials      222     223       +1
Impacted Files Coverage Δ
torchvision/transforms/transforms.py 81.89% <0%> (-0.65%) ⬇️

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 ec20315...710da8c. Read the comment docs.

Copy link
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@fmassa fmassa merged commit 12fab3a into pytorch:master Jun 24, 2019
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.

3 participants