Using a tuple of DLTensor in external C function


#1

I am writing a custom external C function for an operator. I am able to properly pass inputs and attributes through and retrieve them as DLTensor* and int, respectively. However, I would like my inputs to be an arbitrary-length tuple. Is this possible? How can I pipe it through from Relay to the C API?

Alternatively, I can pass this tuple as an attribute instead of an input. It is a tuple of arbitrary-shaped Tensors. Is this a better solution? What would that look like?

For context, I am loading a model from Tensorflow, and one of the ops will be implemented as this external op.

Thanks!


#2

Ping - is this possible?