How to create a Tensor in compute() with C++

Hi,
I want to create a new OP in TOPI with C++, but I don’t know how to create the Tensor in compute() function, is threre any example code for reference?