Thanks for the fast answer.
Does that mean that I’d have to write my own C buffer wrapper ? (Maybe PyBuffer_FromObject: https://docs.python.org/2/c-api/buffer.html#c.PyBuffer_FromObject 6)
I saw that in distributed you use THDPTensorDesc but I guess I can’t access it from Python for now. Do you have a suggestion as to what might be the best alternative ?