Skip to content

Conversation

NicolasHug
Copy link
Member

@NicolasHug NicolasHug commented Jan 29, 2021

The normalize parameter has currently no effect on the save_image() method due to a bug. The parameter was probably introduced accidentally in the method signature and by defining it, it is no longer captured in the kwargs and passed to the make_grid() method as intended.

This PR fixes the bug by removing the declaration from save_image(), letting it be captured by kwargs and passed to make_grid(). Though it's unlikely to break any code, we mark it as BC-breaking because it removes a parameter from the signature. For more information check #3299 (comment)

CC @datumbox, @fmassa

@codecov
Copy link

codecov bot commented Jan 29, 2021

Codecov Report

Merging #3324 (10f0323) into master (a3c0e67) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3324   +/-   ##
=======================================
  Coverage   73.97%   73.97%           
=======================================
  Files         104      104           
  Lines        9606     9606           
  Branches     1537     1537           
=======================================
  Hits         7106     7106           
  Misses       2023     2023           
  Partials      477      477           
Impacted Files Coverage Δ
torchvision/utils.py 65.06% <ø> (ø)

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 a3c0e67...10f0323. Read the comment docs.

@datumbox datumbox merged commit 59df482 into pytorch:master Jan 29, 2021
facebook-github-bot pushed a commit that referenced this pull request Feb 4, 2021
Reviewed By: datumbox

Differential Revision: D26226617

fbshipit-source-id: 874d01718da096645ad61307a071f036470c1f07
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.

3 participants