Convert a Tensor to a Numpy Array or List in PyTorch
www.legendu.net › misc › blogMar 11, 2020 · There are multiple ways to convert a Tensor to a numpy array in PyTorch. First, you can call the method Tensor.numpy. my_tensor.numpy() Second, you can use the function numpy.array. import numpy as np np.array(my_tensor) It is suggested that you use the function numpy.array to convert a Tensor to a numpy array.