x = torch.randn_like(x, dtype=torch.float) # 覆盖上面的x 的dtype! ... 把Torch Tensor转换成NumPy array是很easy的,反之亦然。
確定! 回上一頁