[Relay] analysing of relay graph and clone subggraphs

Hi everyone,

I would like to iterate over relay graph and clone of interesting subgraphs as separate relay graphs. Will appreciate for any help and references to API or demo/snippets

You can use the dataflow matching API to extract sub-graphs which match a pattern. @mbrookhart probably knows where the most up to date docs are.

https://tvm.apache.org/docs/langref/relay_pattern.html

Docs are here. If you have more detail about what you’d like to do, we might be able to point you at something more specific.