create tensor1. torch.tensor():从data创建tensordata可以是list,numpy;dtype默认与data一致。2. torch.from_numpy(ndarray):从numpy创建tensor ...
確定! 回上一頁