建立張量的方式,我們可以直接使用torch.tensor 的方式來建立,可以在 dtype 中 ... t2 = torch.tensor([1,2,3], dtype=torch.float32) ... t_mul2 = torch.mul(a, b).
確定! 回上一頁