how to change dtype from numpy to pytorch code example Example: tensor.numpy() pytorch gpu tensor_array.cpu().detach().numpy()