1. Numpy矩阵转换Tensor:

tensor_num = torch.from_numpy(numpy_arr)

05-08 15:38