data = torch.ones(2, 2) print(data.dtype) #result: torch.int64 # 可能在操作過程中指定其他資料型別--這裡就按照ones--對應int64型別 data ...
確定! 回上一頁