Skip to content

Commit 8f6b9df

Browse files
DmitryUlyanovsoumith
authored andcommitted
Make clearer about nrow parameter in make_grid (#123)
1 parent 510f095 commit 8f6b9df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def make_grid(tensor, nrow=8, padding=2,
88
"""
99
Given a 4D mini-batch Tensor of shape (B x C x H x W),
1010
or a list of images all of the same size,
11-
makes a grid of images
11+
makes a grid of images of size (B / nrow, nrow).
1212
1313
normalize=True will shift the image to the range (0, 1),
1414
by subtracting the minimum and dividing by the maximum pixel value.

0 commit comments

Comments
 (0)