赞
踩
参考 new_tensor(data, dtype=None, device=None, requires_grad=False) → Tensor - 云+社区 - 腾讯云
new_tensor
(data, dtype=None, device=None, requires_grad=False) → Tensor
Returns a new Tensor with data
as the tensor data. By default, the returned Tensor has the same torch.dtype and torch.device as this tensor.
Warning:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。