[TOPI]How to create an OP for creating a Tensor?

Hi,
Anybody know how to add an OP for creating a Tensor in TOPI? Is there any sample code?