Tensor 與Pytorch 的關聯就類似於Array 與Python,就是一個元素,不用想太多 ... x = torch.empty(2) print(x) # tensor([5.2430e+33, 5.4511e-43]). 也可以創建多維.
確定! 回上一頁