read_file¶ torchvision.io.read_file(path: str) → Tensor[來源]¶ 以 uint8 1D Tensor 形式傳回檔案的位元組內容。 參數: path (str 或 pathlib.Path) – 要讀取的檔案路徑 傳回: data (Tensor)