資料型態 torch.dtype. 檢查資料型態 x = torch.ones(2, 3) print(x.dtype) # torch.float32. 所以可以知道預設dtype 是 torch.float32. 也可以賦予資料型態
確定! 回上一頁