import torch
x = torch.randn([100, 3, 28, 28])
device = torch.device("cuda:0")
x = x.to(device)
I wanna trace the procedure tensor.to(device),research the function calls and how the cuda memory is allocated and tensor moved. But there are so many python tricks within the torch source code. I wanna ask where the Tensor.to() is defined?Thanks