read_file¶ torchvision.io.read_file(path: str) → Tensor[源代码]¶ 将文件的字节内容作为 uint8 1D Tensor 返回。 参数: path (str 或 pathlib.Path) – 要读取的文件的路径 返回: data (Tensor)