make_grid — Torchvision 0.22 documentation (original) (raw)

torchvision.utils.make_grid(tensor: Union[Tensor, List[Tensor]], nrow: int = 8, padding: int = 2, normalize: bool = False, value_range: Optional[Tuple[int, int]] = None, scale_each: bool = False, pad_value: float = 0.0) → Tensor[source]

Make a grid of images.

Parameters:

Returns:

the tensor containing grid of images.

Return type:

grid (Tensor)

Examples using make_grid: