write_file
-
torchvision.io.
write_file
(filename: str, data: torch.Tensor) → None[source] Writes the contents of a uint8 tensor with one dimension to a file.
- Parameters
filename (str) – the path to the file to be written
data (Tensor) – the contents to be written to the output file