If you have a numpy array and want to avoid a copy, use torch.as_tensor() . ... Returns a Tensor of size size filled with uninitialized data.
確定! 回上一頁