In this guide Adding an Operator to Relay
step 2, write a type relation, In my situation, the output shape can only be infered by the value but shape of inputs, so how I can assign the shape of output like this :
reporter->Assign(types[4], TensorType(oshape, data->dtype));