Thank you for answering. this helps quite a bit.
I don’t understand this question, but a Relay program must have an output, and you cannot print message inside the Relay function.
Let’s say for a a relay.nn.conv2d
function, we produce a C function that prints some information. The motivation for this is to get confident with the BYOC framework before getting into more serious work.
So we can’t generate functions that prints a message (or have side effects)? Can we call an external library that has side effects?
I guess it is always possible to fill the output tensor with dummy values, but if it isn’t possible to print a message then my question loses its purpose.