I have already quite some functions implemented in C to interface some Cuda code with my python code, Isn’t there any way for me to make this work using types such as THCudaTensor or THFloatTensor ?
Especially as this is a very easy way to use data created in python directly in C and Cuda.
UPDATE :
I am for now using the tensor as a float * to access its elements and create it in python directly.