write_png
-
torchvision.io.
write_png
(input: torch.Tensor, filename: str, compression_level: int = 6)[source] Takes an input tensor in CHW layout (or HW in the case of grayscale images) and saves it in a PNG file.
torchvision.io.
write_png
(input: torch.Tensor, filename: str, compression_level: int = 6)[source]Takes an input tensor in CHW layout (or HW in the case of grayscale images) and saves it in a PNG file.