I build a C extension using torch.utils.ffi.
One of the C function requires struct THFloatTensor * *.
How to parse struct THFloatTensor * * into python argument?
The error I got:
TypeError: initializer for ctype ‘struct THFloatTensor * *’ must be a pointer to same type, not cdata ‘struct THFloatTensor *’
There’s not enough information in your post to give an answer. What’s your code look like? Somwhere you are parsing a pointer to a pointer as a pointer.