How could we compile and run scripted functions which take non-tensor data types (such as int, bool, List[int] etc), in TVM ?
For example
graph(%a.1 : int[],
%b.1 : Tensor):
%4 : int = prim::Constant[value=1]()
%3 : int = prim::Constant[value=2]()
%c.1 : Tensor = aten::add(%b.1, %3, %4)
%8 : (Tensor, int[]) = prim::TupleConstruct(%c.1, %a.1)
return (%8)
This is a dummy graph. How do we send int[] to TVM as DLTensor… Similarly, there is a possibility that this graph could take a bool or an int or a float. How do we send those data types to TVM as DLTensors?