read_file¶ torchvision.io.read_file(path: str) → Tensor[source]¶ 將檔案的位元組內容作為 uint8 的一維 Tensor 返回。 引數: path (str 或 pathlib.Path) – 要讀取的檔案的路徑 返回值: data (Tensor)