I’m converting a Pytorch 0.4 version model to Pytorch 1.3. I failed to build some self defined .c files, because Pytorch deprecated THC, and use ATen as CUDA lib. Can anyone tell me what is the corresponding THCudaTensor_data function in ATen? Or how should I modify the C files?
probably tensor.data_ptr()
Hi @SimonW, thanks for your reply. It seems right, both functions return the address of given tensor. However, I want to use it in c++, should I use something like at::tensor.data_ptr()?
yeah, I actually meant the cpp code.
1 Like
Thank you! will give a try.