类型转换, 将list ,numpy转化为tensor。 以list -> tensor为例:print(torch.FloatTensor([1,2]))# 输出: tensor([1., 2.])根据torch.
確定! 回上一頁