Pyorch之numpy与torch之间相互转换方式 numpy中的ndarray转化成pytorch中的tensor:torch.from_numpy()pytorch中的tensor转化成numpy中的ndarray:numpy() Pyorch