read_file torchvision.io.read_file(path: str) → Tensor[source] [DEPRECATED] Use TorchCodec instead. Return the bytes contents of a file as a uint8 1D Tensor.