Graph tuning a TE computation? te.op to relay.Expr?

Is it possible to graph tune a te based computation?

Graph tuners expect a relay.Expr, but so far I could not find a way to convert te based expressions to relay expression.

Whenever I use te-based constructs (tensors and ops) I found them to be incompatible with relay constructs, is it possible to convert a te.compute(…) (or any other re.op) to a relay.Expr?


Hi, graph tuning is a graph(relay) level optimization. Usually you need to create a relay op which wraps your te computation to use graph tuning.

1 Like

Thanks for the answer Kevin. What’s the best way of doing this?

I could not find a way to use te.Tensors with relay ops or expressions. What would then be the intended way to wrap te constructs in a relay op?