What to do if the number of forward outputs of the model is 2 or more when coding directly with relay

What to do if the number of forward outputs of the model is 2 or more when coding directly with relay?

As far as i know, relay.Function only has one output In the TVM reference.

Hi @choi95,

You can return a Tuple if the model has multiple outputs, an example is here.

In Relax(Relay Next), you can use TVMScript to write your model and return a tuple using python syntax: return (out1, out2), please refer to this example.