1. 11 Mar, 2020 2 commits
  2. 10 Mar, 2020 4 commits
  3. 04 Mar, 2020 5 commits
  4. 28 Feb, 2020 1 commit
  5. 27 Feb, 2020 1 commit
  6. 25 Feb, 2020 3 commits
    • Phoenix Meadowlark's avatar
      Improved error messages for transforms.functional.normalize(). (#1915) · 2f433e0a
      Phoenix Meadowlark authored
      * Improved error messages for transforms.functional.normalize().
      
      Split the original TypeError into 1. a TypeError if `tensor` is not a torch.Tensor and 2. a ValueError if `tensor` does not have the correct dimensionality.
      
      Added more detail to the error for when `tensor` has the wrong dimension to make it easier to diagnose. This is useful when this function isn't called directly by the user (e.g. when the user uses transforms.Normalize and can't directly see this functions doc string).
      
      Deleted hanging function `_is_tensor_image()`. It isn't used in this file and isn't used internally anywhere else in torchvision that I can see. (Some users will have used it despite the underscore prefix, but a quick google search for "F._is_tensor_image" suggests this is rare).
      
      * Value checking to prevent division by zero runtime crashes.
      
      Added a ValueError to check for and avoid division by zero in `div_`. Not preventing the call leads to runtime crashes, at least in some environments.
      
      * Fixed div by zero check for non-scalar inputs.
      2f433e0a
    • Francisco Massa's avatar
      2937d77d
    • Lutz Roeder's avatar
      21603531
  7. 24 Feb, 2020 4 commits
  8. 14 Feb, 2020 4 commits
  9. 13 Feb, 2020 2 commits
  10. 10 Feb, 2020 4 commits
  11. 04 Feb, 2020 1 commit
    • F-G Fernandez's avatar
      Added __repr__ attribute to GeneralizedRCNNTransform (#1834) · e2573a71
      F-G Fernandez authored
      * feat: Added __repr__ attribute to GeneralizedRCNNTransform
      
      Added more details to default __repr__ attribute for printing.
      
      * fix: Put back relative imports
      
      * style: Fixed pep8 compliance
      
      Switched strings with  syntax to f-strings.
      
      * test: Added test for GeneralizedRCNNTransform __repr__
      
      Checked integrity of __repr__ attribute
      
      * test: Fixed unittest for __repr__
      
      Fixed the formatted strings in the __repr__ integrity check for GeneralizedRCNNTransform
      
      * fix: Fixed f-strings for earlier python versions
      
      Switched back f-strings to .format syntax for Python3.5 compatibility.
      
      * fix: Fixed multi-line string
      
      Fixed multiple-line string syntax for compatibility
      
      * fix: Fixed GeneralizedRCNNTransform unittest
      
      Fixed formatting of min_size argument of the resizing part
      e2573a71
  12. 03 Feb, 2020 1 commit
  13. 30 Jan, 2020 1 commit
  14. 29 Jan, 2020 6 commits
  15. 28 Jan, 2020 1 commit