torch.tensor默认requires_grad=False
torch.
tensor
(data, dtype=None, device=None, requires_grad=False, pin_memory=False) → Tensor
torch.
zeros
(*size, out=None, dtype=None, layout=torch.strided, device=None, requires_grad=False) → Tensor
torch.
ones
(*size, out=None, dtype=None, layout=torch.strided, device=None, requires_grad=False) → Tensor
快去成为你想要的样子!