read_file
-
torchvision.io.
read_file
(path: str) → torch.Tensor[source] Reads and outputs the bytes contents of a file as a uint8 Tensor with one dimension.
- Parameters
path (str) – the path to the file to be read
- Returns
data (Tensor)
torchvision.io.
read_file
(path: str) → torch.Tensor[source]Reads and outputs the bytes contents of a file as a uint8 Tensor with one dimension.
path (str) – the path to the file to be read
data (Tensor)